在QLabel上显示图像的问题
问题描述:
我使用Qt创建了一个应用程序,它使用css在QLabel中显示一个图像,它在我的开发机器上正常工作。
但不在其他机器上显示图像。我检查了我的开发机器中的所有位置,但没有检查其他系统(Windows Xp和Windows 7)
我把这个css放在我的样式表字段上
I created one application using Qt it shows one image in a QLabel using css its working fine on my development machine.
but not displaying images on other machines. I checked all the locations in my development machine but not in other systems(Windows Xp and Windows 7)
I put this css on my stylesheet field
image: url(:/new/IMG/Images/MC-183202464-2.jpg);
答
使用完整路径并确保图像与其他机器一致。
use a complete path and insure that the image is one the other machines.
使用完整路径并确保图像是一个其他机器。
use a complete path and insure that the image is one the other machines.