PDA

View Full Version : Adding icons on title bar of mainwindow



Charvi
3rd July 2012, 08:29
Hi,

I want to customize my mainwindow title bar. I want to show my device battery status by an icon and other stuffs like my own Icon instead of the default Qt icon. How do I achieve this. My target OS is linux.

Thanks in advance.

amleto
3rd July 2012, 08:31
http://doc.qt.nokia.com/4.7-snapshot/appicon.html

Charvi
7th July 2012, 08:23
Ok. I figured out the title bar cannot be controlled from within Qt. It is controlled by the Windows Manager. So if we want a custom title bar then we need to remove the existing one by setting the flag Qt::FramelessWindowHint and then create our own title bar in the ui file by using label or any suitable widget.