页次: 1
目前只有/etc/inittab 处理 有效点。只是启动后,暂时打印,但没有彻底断开。开机还是打印出来。
搞了一整天也不知从哪里彻底断开!多谢指导?
#
#
#
#
::sysinit:/bin/mount -t proc proc /proc
::sysinit:/bin/mount -o remount,rw /
::sysinit:/bin/mkdir -p /dev/pts
::sysinit:/bin/mkdir -p /dev/shm
::sysinit:/bin/mount -a
::sysinit:/bin/hostname -F /etc/hostname
::sysinit:/etc/init.d/rcS
#::ctrlaltdel:/sbin/reboot
::shutdown:/etc/init.d/rcK
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
V3S+QT5 显示图片问题。
QPixmap::scaled: Pixmap is a null pixmap
我的配置如下:
一. 移植的时候注意:
配置(configure)的时候加上 -qt-libjpeg 好像默认是加上的。
make install 后, 看看安装的目录(前缀/plugins/imageformats)有没有 libjpeg.so
二. 开发板
QT 源码修改:
在Qt的pro文件中增加QTPLUGIN += jpeg
开发板
1) 把"libjpeg.so"等文件 复制到开发板"/usr/lib/qt/plugins/imageformats/" ;
2) 设置环境变量,
export LD_LIBRARY_PATH=$QTLIB/qt/plugins/imageformats:$LD_LIBRARY_PATH
export QT_PLUGIN_PATH=$QTLIB/qt/plugins
搞了一天了,结果还是图片无法显示。各位,有无相关的经历,分享怎么解决
测试下QT5里面的例子blockingmaster
修改文件dialog.cpp 文件
setWindowTitle(tr("Blocking Master"));
serialPortComboBox->setFocus();
connect(runButton, &QPushButton::clicked, this, &Dialog::transaction);
connect(&thread, &MasterThread::response, this, &Dialog::showResponse);
connect(&thread, &MasterThread::error, this, &Dialog::processError);
connect(&thread, &MasterThread::timeout, this, &Dialog::processTimeout);
transaction();//<<新增这一行表示,初始化就开启线程
页次: 1