Hi All,
How do i remove the top left (default) icon on a widget\dialog?
Tried SetIcon(0) and did not succeed
Requrds
E.
Hi All,
How do i remove the top left (default) icon on a widget\dialog?
Tried SetIcon(0) and did not succeed
Requrds
E.
Last edited by Equilibrium; 7th November 2007 at 16:55.
Hmm.. Not sure it is possible to remove it. You could make a temporary transparent icon and setWindowIcon with that.. Would at least make it invisible.
so ther is no way other than setting a transparent image?
Hmm.... Not familiar w/ Qt3, and you didn't mention which platform you're on, so not sure if this helps... but.... FWIW, here's what I can say regarding how things work in Qt4/Windows.
In Windows, the icon shows up when you have the WS_SYSMENU style. In Qt4, this is turned on when the Qt::WindowSystemMenuHint window flag is set, which is on by default I think. For dialogs, they seem to only remove it when your QDialog does NOT have a 'Cancel' button...
Bookmarks