Results 1 to 4 of 4

Thread: remove the top left icon on qwidget\qdialog

  1. #1
    Join Date
    Jun 2006
    Posts
    32
    Thanks
    1
    Thanked 1 Time in 1 Post

    Question remove the top left icon on qwidget\qdialog

    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.

  2. #2
    Join Date
    Aug 2006
    Posts
    250
    Thanks
    19
    Thanked 49 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: remove the top left icon on qwidget\qdialog

    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.

  3. #3
    Join Date
    Jun 2006
    Posts
    32
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: remove the top left icon on qwidget\qdialog

    so ther is no way other than setting a transparent image?

  4. #4
    Join Date
    Aug 2006
    Posts
    44
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: remove the top left icon on qwidget\qdialog

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.