我在代码添加了打印信息,
int isTrue = m_pixmapBg.load(":/res/image/background.png");
qDebug()<<"load background result is: "<<isTrue;
结果是:load background result is: 0
我又试了试吧图片直接在creator 的ui上直接添加样式表,还是不行。我快崩溃了。
我在pro文件里添加了QTPLUGIN += qjpeg qmng这句代码,经过交叉编译以后,生成了可执行文件test_png,又用工具查看了test_png的链接库,
只是在开发板上运行时,出现了错误./test_png/test_png: error while loading shared libraries: libqjpeg.so: cannot open shared object file: No such file or directory