Skip to content

vishalbhardwaj26/hw-qwidget-borderless-custom-window

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

helloworld-qwidget-borderless-custom-window

To Run

  • Open it in Visual Studio 2015 and rebuild
    • To run it in visual studio
      • You need Visual studio 2015 (with update 2 or 3) + "C++" component installed with VS
      • You need Qt integration with visual studio
      • you might need Qt 5.7
        • skip the user registeration part.

About App

  • Frameless QWidget window with custom title bar and custom buttons.
  • Customize by overriding native “resize” , “mouse” and “paint” events.
  • Hover or focused border style on custom window/title bar.

GUI:

More Study

  • Window frame is an OS specific thing and is not drawn by Qt. Approach is disabling window frame entirely by setting Qt::FramelessWindowHint flag on your widget, and drawing the frame and buttons yourself. This gives you control of the look of the frame, but is also a lot of work, because you need to handle all the windowing behavior like resizing, moving, maximizing or Aero Shake yourself.
  • Frameless QMainWindow is resizable its own, but custom window or dialog need to have QSizeGrip to make it resizable.
  • Title bar cannot be configured with stylesheet. Title bar is provided by Window Manager.

About

Experimenting with QWidget UI (Qt) to make the window borderless

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages