简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM