How to make FramelessWindowHint resizable ?
-
I have a window and this window is Qt::FramelessWindowHint type. I want to be able to resize this window at the same time but I can not.
When I tried Qt::Popup type, I am able to resize the window and window doesn't have title so everything fine. But since it is a pop-up when I clicked to out of pop-up window it disappears.
How can I get a QWidget window without a title bar and can be resizable at the same time?
Thanks.
-
@Yunus
https://stackoverflow.com/questions/43505580/qt-windows-resizable-frameless-window says you have to do it via native Windows calls.
A different approach is suggested in https://forum.qt.io/topic/15747/how-to-enable-resizing-of-a-frameless-widget.
I suggest you try Googlingqt FramelessWindowHint resize
is you want to find out about resizing a frameless window in Qt. -
@Yunus
I have a recollection that when I looked through Qt source code the behaviour of "popup" is hard-coded into it at various stages, e.g. the dismissal when you click outside. So I would suggest trying to implement it by popup which is not to behave like a popup should may not be the best solution. -