Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to resize and snap frameless windows when drag to edges
saeid0034 last edited by saeid0034
Hi, Im created a frameless windows with qt widget (im using this flags and Attribute to make it framless
I want to know its possible to snap windows against other window and resize it when dragged to the edge of the screen like when we use normal window frame?
I read about
startSystemResizein document, but im not sure how can i use it in qt widget
On win 10, it seems not to trigger if the window has no real titlebar -
even if we drag it otherwise.
It is possible with native api.
saeid0034 last edited by
@mrjj thank you, I check it and yes looks like its working
but sadly I dont have any Idea about how to use it on existing project (ui file created with qt designer) do you have any tips about it? thanks
It wraps the actual widget so, on windows, you can use
at line 128 where it says
//Create the true app widget
You can then instantiate your own widget and add to its layout. (m_Layout)