PDA

View Full Version : Can setWindowIcon() work in QDockWidget?



alfa_wu
12th December 2007, 07:25
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

aamer4yu
12th December 2007, 07:52
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

alfa_wu
13th December 2007, 09:51
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?