Qt3/Win Free: qtoolbar problem?

Angus Leeming leeming at lyx.org
Tue Jan 18 13:44:43 CET 2005


Dear all,

here's my second little bug report. Actually, I'm not sure that this is a
bug report at all. Perhaps what I'm going to describe is actually an
example of the difference between native looks on Windows and linux?

Anyway, the report. This demo program

int main(int argc, char * argv[])
{
    QApplication a( argc, argv );

    QPixmap image( (const char **) image_data );

    QToolBar toolbar;
    toolbar.resize( 100, 30 );

    QToolButton button(image, "Stop!", "",  0, 0, &toolbar, "");
    button.setEnabled(false);

    a.setMainWidget( &toolbar );
    toolbar.show();
    return a.exec();
}

Does not display the icon of the disabled button at all on Windows. On
linux, the pixmap is greyed out so that its outline is still visible.
Attached are (small) screenshots showing the behaviour on Windows and on
linux Also attached is the demo program which I compiled with

$ g++ -Iqt3/include -o trial2 trial2.C Lqt3/lib -lqt-mt

I hope that's enough to get to the bottom of this problem too.

Kind regards,
Angus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: toolbar_disabled_linux.png
Type: image/png
Size: 1066 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-cygwin/attachments/20050118/5b7178fe/toolbar_disabled_linux.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: toolbar_disabled_win32.png
Type: image/png
Size: 217 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-cygwin/attachments/20050118/5b7178fe/toolbar_disabled_win32.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: toolbar_enabled_linux.png
Type: image/png
Size: 1066 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-cygwin/attachments/20050118/5b7178fe/toolbar_enabled_linux.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: toolbar_enabled_win32.png
Type: image/png
Size: 798 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-cygwin/attachments/20050118/5b7178fe/toolbar_enabled_win32.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trial2.C
Type: text/x-csrc
Size: 1845 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-cygwin/attachments/20050118/5b7178fe/trial2.bin


More information about the kde-cygwin mailing list