Code Monkey home page Code Monkey logo

frameless-qt-poc's Introduction

frameless-qt-poc

FramelessWindow Demo for Qt Applications (POC)

screenshot

Why this exists?

Since Qt 5.15 there are two new QWindow slots (functions):

These functions can be used to implement frameless windows ( using the Qt::FramelessWindowHint window flag ) that can be moved and resized like normal windows having a frame and a title bar, but the application is totally free to draw those elements. This is called Client Side Window Decorations (CSD). There is a similar QML based demo and also a blog post by Johan Helsing.

This POC is not design oriented, but on functionality and simplicity. There are several other similar demos with much more elaborated design, and based on native functions which may be of interest for older Qt versions, for instance:

This is an easier way, and has the advantage of working on Windows, macOS and Linux (both X11/xcb and Wayland). It can be used with projects based on Qt 5.15 and Qt 6.x.

Results

Tests built with Qt 5.15.2 and Qt 6.3.0

✅ means that it is usable.

❌ means that it is not usable.

❓ means that the results are not conclusive.

Platform: Qt5 + move window Qt5 + resize Qt6 + move window Qt6 + resize
Windows
macOS
Linux X11/xcb
Linux Wayland

Other Projects using the FramelessWindow class

frameless-qt-poc's People

Contributors

cm0use avatar pedrolcl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

yresk cm0use xgreat

frameless-qt-poc's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.