Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aero Snap with Borderless Window in Qt

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.

like image 321
Keavon Avatar asked May 27 '13 02:05

Keavon


1 Answers

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.

like image 67
Kévin Renella Avatar answered Nov 15 '22 18:11

Kévin Renella