Question

I'm trying to create a Metro-style interface in Qt, which means not using the Windows 7 Aero border. I've already set the window to be borderless and added code to make it draggable and buttons to make it minimize, maximize, and close. However, Aero Snap does not work.

I know it is possible because Visual Studio 2012, MS Word 2013, and Steam all have borderless windows with Aero Snap.

How can I implement Aero Snap into a borderless Qt application? Thanks.

Was it helpful?

Solution

I was looking for this kind of Qt window and I have finally found a solution.

This GitHub example does the job like a charm (thanks to deimos1877)! https://github.com/deimos1877/BorderlessWindow

Be sure to use visual studio compiler to get the needed DLL and it should work. This example include aerosnap support, borderless window, minimize effect, aero shadows.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top