PDA

View Full Version : How to remove QMainWindow's title and border



meraj ansari
13th May 2010, 17:27
Hi,

I have to customize my application's look and feel and i am facing two problems-

1- I want to remove QMainWindow's title bar and want to use my custom title bar.

2-I want to remove QMainWindow's border also (like QTDemo application).

Any help/tutorial will be good for me.

wysota
13th May 2010, 18:22
1- I want to remove QMainWindow's title bar and want to use my custom title bar.
Use Qt::FramelessWindowHint.


2-I want to remove QMainWindow's border also (like QTDemo application).
QtDemo doesn't remove any borders so you have to be more specific about what you want.