Dear all, here's another little bug report from those pesky LyXers ;-)
I'm using a bang up to date version of the Qt3/Win Free CVS sources. My libqt-mt.a library is dated 16 Jan. All code compiled with the MinGW g++ 3.4 compiler following exactly the prescription on your web pages. The following demo program int main(int argc, char * argv[]) { QApplication a( argc, argv ); QPixmap image( (const char **) image_data ); QPushButton button( "Stop!", 0 ); button.setPixmap(image); button.setEnabled(false); button.resize( 100, 30 ); a.setMainWidget( &button ); button.show(); return a.exec(); } displays incorrectly on Windows when the button is disabled. It looks like the pixmap mask is inverted. Attached are (small) screenshots to show the result on both Windows and on Linux. Also attached is the demo program which I compiled with $ g++ -Iqt3/include -o trial trial.C Lqt3/lib -lqt-mt I hope that's enough to get to the bottom of the problem. Kind regards, Angus
<<attachment: qbixmapbutton_disabled_win32.png>>
<<attachment: qpixmapbutton_disabled_linux.png>>
<<attachment: qpixmapbutton_enabled_linux.png>>
<<attachment: qpixmapbutton_enabled_win32.png>>
#include <qapplication.h> #include <qpixmap.h> #include <qpushbutton.h> static const char* const image_data[] = { "22 22 50 1", ". c None", "g c #000000", "# c #180808", "a c #200808", "h c #290c08", "b c #311010", "p c #5a2820", "x c #8b0c08", "f c #8b615a", "N c #9c0400", "w c #ac0000", "o c #b44c41", "M c #bd0400", "T c #bd1410", "J c #bd2410", "v c #bd615a", "E c #c53c31", "R c #c54c41", "I c #c55041", "u c #c5695a", "t c #c56962", "s c #c56d62", "V c #c57d7b", "D c #cd5552", "C c #cd5d52", "H c #cd615a", "r c #cd716a", "e c #cdbebd", "B c #d5655a", "A c #d56962", "z c #d56d62", "L c #d5716a", "S c #d57573", "O c #d57973", "n c #d57d7b", "y c #de716a", "G c #de7573", "P c #de7d73", "m c #de8583", "c c #de898b", "l c #de918b", "K c #e67d73", "F c #e67d7b", "k c #e6958b", "j c #e69d94", "U c #e6d2d5", "q c #ee9d94", "d c #ffeaee", "Q c #fffaff", "i c #ffffff", "......................", "......#aaaaaaaa.......", ".....bcddddddefg......", "....hcijjkllmnopg.....", "...hciqrrstuuvwxpg....", "..bcilyyyzABCDEwxpg...", ".#ciqyyiFGyzHiIJwxpg..", ".adjKyiiiFGLiiiIMNpg..", ".adjOyFiiiPiQiCEMNpg..", ".adkOzGFiiiiiCREMNpg..", ".adlOAyGPiiiHIIEMNpg..", ".adlSBzLiiiiiRETMNpg..", ".#dnrCHiQiHiiiJMMNpg..", ".aUnvEiiiCIRiiiJMNpg..", ".aVowJEiRREJJiMMNxpg..", "..gpxwJJJJTJMJMNxpg...", "...gpxwMMMMMMMNxpg....", "....gpxNNNNNNNxpg.....", ".....gpppppppppg......", "......ggggggggg.......", "......................", "......................"}; int main(int argc, char * argv[]) { QApplication a( argc, argv ); QPixmap image( (const char **) image_data ); QPushButton button( "Stop!", 0 ); button.setPixmap(image); button.setEnabled(false); button.resize( 100, 30 ); a.setMainWidget( &button ); button.show(); return a.exec(); }