Window Style: No border but resizable
Hi guys, I've got problems with MainWindow styling...I need to set up WindowFlags to disable borders but window must be still resizable.
When I tried to use Qt::SplashScreen, Qt::FramelessWindowHint, it was okay but not resizable...When I used Qt::CustomizeWindowHint it was resizable but with border, which is not configurable...How to resolve it? Some WinAPI cheats ? (Yea, this app will runs only on Windows). My current system is Windows XP.
Re: Window Style: No border but resizable
Why do you want to do that?
Re: Window Style: No border but resizable
I want to make skinable window...do you have any ideas? Maybe it is wrong way...
Re: Window Style: No border but resizable
The drawing of the actual windows is not done in Qt but by the window manager of your operating system.
The correct way to skin your windows is to use the style options of your window manager.
If you want to follow general standards, don't mess with how the window manager draws windows.
That said: Create a splash screen type of widget, add a label in the bottom right corner, use the mouse events of that label to resize your parent widget.
Re: Window Style: No border but resizable
Re: Window Style: No border but resizable
So how do it? By WinAPI yea?
Re: Window Style: No border but resizable
You wil need to trace mouseEvents on your widget, change the cursor if the mouse in a specific corner.
Then catch mouse press events and resize your widget on mouse move events.