Results 1 to 3 of 3

Thread: Can setWindowIcon() work in QDockWidget?

  1. #1
    Join Date
    Feb 2007
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Can setWindowIcon() work in QDockWidget?

    Hi,
    [Qt library]: 4.2.3
    [LINUX]: 2.4.21-32.ELsmp #1 SMP
    [gcc]: version 3.2.3 20030502 (Red Hat Linux 3.2.3-52)

    I wanted to show window icon on QDockWdiget left-top corner by setWindowIcon(), but it can not work.
    But setWindowTitle() works. That is, we can set window title on QDockWidget.

    Can anyone help?

    Thanks a lot.
    Alfa Wu

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can setWindowIcon() work in QDockWidget?

    QDockWidget::setTitleBarWidget ...
    hope this function is of some use to you...
    u can set a widget as title bar,,, and have some toolbutton in the widget for icon,, or something like that

  3. #3
    Join Date
    Feb 2007
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Can setWindowIcon() work in QDockWidget?

    My QT Library is 4.2.3, not 4.3.x
    The function setTitleBarWidget() is in QT4.3

    Can anyone help that, if my QT library is 4.2.x?

Similar Threads

  1. Replies: 8
    Last Post: 4th February 2007, 00:42

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.