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.
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.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
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.
Bookmarks