Hi folks,
I have a strange problem when loading a .png image to a QPixmap.
|
Source code
|
1
|
QPixmap background_pixmap = QPixmap("sample.png");
|
In fact, it might not even be related to the png or the map itself, but rather to some qt environment setting.
Here are the symptoms:
When I use the gcc 4.4.1 compiler that came with my Linux distribution along with Qt compiled with this compiler, when I start the application, the Qbuttons have sharp edges and the png file shows up.
When I instead compile with a gcc 4.5.0 compiler build from the sources and Qt build with this compiler, when I start the application, the QButtons have more rounded edges and the .png graphic doesn't show up.
How can the compiler used have effect on how the GUI looks and wether the png loading code works??
My guess is that some environment variables are observed by applications build with the system compiler, while not when build with the custom compiler.
Any hints on how I can do further research here?
Philipp