Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

Qt not loading an image in a PushButton(Qt 5.0.2 for Windows 64-bit)

$
0
0
Hi all,I am using Qt Creator 2.7.0 Based on Qt 5.0.2 (32 bit) and using the msvc 2012 compiler and I find that the following simplified code fails to load the icon.On my other setup with mingw the image loads without problem. QPushButton * mButton=new QPushButton(this);     QPixmap mPixmap(":/images/images/addPageResized.png");     mButton->setIcon(QIcon(mPixmap)); Just wondering if this problem is specific to Qt for visual studio 2012 .Any pointers in the right direction would be appreciated.

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>