PDA

View Full Version : QLabel setPixmap only works twice?



December
28th February 2010, 10:59
I've been using this bit of code for ages, and it's always worked before, but since I upgraded to 4.6 it only works twice, then stops.


label->setPixmap( QPixmap( dir + "/logo.png" ) );

.. where dir is the path for a skin being loaded.

When I use it, the label gets a new graphic twice only (so I know for sure the path is correct), then stops updating. Is there some new features in 4.6 that would prevent this from working like it did in 4.5, or am I doing something stupid here?