Qt3/Win Free: qpixmapbutton problem

Angus Leeming leeming at lyx.org
Wed Jan 19 10:27:36 CET 2005


Angus Leeming wrote:
> 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.

This is now bug 1105118: Disabled QPixmap buttons

Regards,
Angus




More information about the kde-cygwin mailing list