[Interest] Problem with QPixmap.
Igor Mironchik
igor.mironchik at gmail.com
Sat Apr 18 07:03:13 CEST 2015
Hi, William.
On Sat, 18 Apr 2015 01:54:27 +0300, william.crocker at analog.com
<william.crocker at analog.com> wrote:
> On 04/17/2015 12:53 PM, Igor Mironchik wrote:
>> Hi, guys.
>>
>> I have one problem: pixmap "usb-disconnected.png" doesn't draws
>> correctly. Draws
>> absolutely nothing. And if click on this button application crashes.
>> What is the
>> problem? Thank you.
>>
>
> Have you added the .png file to your .qrc file.
Yes, I have.
And if I do
QPixmap pixmap = QPixmap( ":/usb.png" );
or
QPixmap pixmap = QPixmap( ":/usb-disconnected.png" );
then pixmaps displays...
--
Best Regards,
Igor Mironchik.
More information about the Interest
mailing list