All Projects → wangwenx190 → Framelesshelper

wangwenx190 / Framelesshelper

Licence: mit
Frameless windows for Qt Widgets and Qt Quick applications. Support Win32, X11, Wayland and macOS.

Projects that are alternatives of or similar to Framelesshelper

Arcgis Appstudio Samples
Collection of samples available in AppStudio for ArcGIS desktop to learn and help build your next app.
Stars: ✭ 78 (-57.38%)
Mutual labels:  win32, qt
Xmly Downloader Qt5
喜马拉雅FM专辑下载器. 支持VIP与付费专辑. 使用Go+Qt5编写(Not Qt Binding).
Stars: ✭ 214 (+16.94%)
Mutual labels:  win32, qt
Qhexview
A versatile Hexadecimal widget for Qt5
Stars: ✭ 168 (-8.2%)
Mutual labels:  qt
Phantomstyle
Cross-platform QStyle for traditionalists
Stars: ✭ 179 (-2.19%)
Mutual labels:  qt
Qxorm
QxOrm library - C++ Qt ORM (Object Relational Mapping) and ODM (Object Document Mapper) library - Official repository
Stars: ✭ 176 (-3.83%)
Mutual labels:  qt
Moonlight Qt
GameStream client for PCs (Windows, Mac, Linux, and Steam Link)
Stars: ✭ 2,796 (+1427.87%)
Mutual labels:  qt
Anms Codes
Efficient adaptive non-maximal suppression algorithms for homogeneous spatial keypoint distribution
Stars: ✭ 174 (-4.92%)
Mutual labels:  qt
Shell
🐚 QtQuick and Wayland shell for convergence
Stars: ✭ 168 (-8.2%)
Mutual labels:  qt
Client
Client software primarily used with the CasparCG Server software for audio and video playout, to control graphics and recording, but it can also be used for other tasks within television broadcast.
Stars: ✭ 183 (+0%)
Mutual labels:  qt
Jamtaba
Jamtaba is a software to play online music jam sessions.
Stars: ✭ 174 (-4.92%)
Mutual labels:  qt
Mixxx
Mixxx is Free DJ software that gives you everything you need to perform live mixes.
Stars: ✭ 2,510 (+1271.58%)
Mutual labels:  qt
Polyphone
A soundfont editor for quickly designing musical instruments.
Stars: ✭ 173 (-5.46%)
Mutual labels:  qt
Apkstudio
Open-source, cross platform Qt based IDE for reverse-engineering Android application packages.
Stars: ✭ 2,246 (+1127.32%)
Mutual labels:  qt
Imageqt
数字图像处理——基于Qt 5.8.0
Stars: ✭ 177 (-3.28%)
Mutual labels:  qt
Usdmanager
USD Manager
Stars: ✭ 169 (-7.65%)
Mutual labels:  qt
Qt5.cr
Qt5 bindings for Crystal, based on Bindgen
Stars: ✭ 182 (-0.55%)
Mutual labels:  qt
Qtools
Qtools is a collection of utilities to aid development with CommonQt
Stars: ✭ 168 (-8.2%)
Mutual labels:  qt
Flameshot
Powerful yet simple to use screenshot software 🖥️ 📸
Stars: ✭ 15,429 (+8331.15%)
Mutual labels:  qt
Win32 Darkmode
Example application shows how to use undocumented dark mode API introduced in Windows 10 1809.
Stars: ✭ 176 (-3.83%)
Mutual labels:  win32
Browser
🌍 Cross-platform Material design web browser
Stars: ✭ 184 (+0.55%)
Mutual labels:  qt

FramelessHelper

If you are using part of or all the code from this repository in your own projects, it's my pleasure and I'm happy that it can help you. But I hope you can tell me the URL of the homepage or repository of your projects, whether your projects are close-sourced or commercial products do not matter. I'll link to your homepage or repository in this README file. It would be much better if you can provide me some screenshots of your software for demonstration.

如果您正在使用此项目的部分或全部代码,这是我的荣幸,我很高兴能帮到您,但我同时也希望,您能将您项目的首页或仓库的网址告诉我(闭源或收费都没关系),我将在这个自述文件中链接到您所提供的网址,以供展示。如果您能一并提供一些软件运行时的截图,那就更好了。

Screenshots

Quick_Acrylic_Win7

Features

  • Support Windows, X11, Wayland and macOS.
  • Frameless but have frame shadow.
  • Draggable and resizable.
  • Automatically high DPI scaling.
  • Multi-monitor support (different resolution and DPI).
  • Have animations when minimizing, maximizing and restoring.
  • Support tiled and stack windows by DWM (Win32 only).
  • Won't cover the task bar when maximized (Win32 only).
  • Won't block the auto-hide task bar when maximized (Win32 only).
  • Support cross-platform blur effect inspired by Microsoft's Acrylic blur.

Usage

#include "framelesswindowsmanager.h"
#include <QWidget>

int main(int argc, char *argv[]) {
    QWidget widget;
    // Qt's internal function. Make sure it's a top level window.
    widget.createWinId();
    // Do this before the widget is shown.
    FramelessWindowsManager::addWindow(widget.windowHandle());
    widget.show();
}

Please refer to the QWidget example for more detailed information.

Ignore areas and etc

// Only **TOP LEVEL** QWidgets and QWindows are supported.
QMainWindow *mainWindow = new QMainWindow;
// Qt's internal function. Make sure it's a top level window.
mainWindow->createWinId();
QWindow *win = mainWindow->windowHandle();
// Disable resizing of the given window. Resizing is enabled by default.
FramelessWindowsManager::setResizable(win, false);
// All the following values should not be DPI-aware, just use the
// original numbers, assuming the scale factor is 1.0, don't scale
// them yourself, this code will do the scaling according to DPI
// internally and automatically.
// Maximum window size
win->setMaximumSize(1280, 720);
// Minimum window size
win->setMinimumSize(800, 540);
// The **POINTER** of a QWidget or QQuickItem
FramelessWindowsManager::addIgnoreObject(win, ui->pushButton_minimize);

Supported Platforms

Win32

Windows 7 ~ 10, 32 bit & 64 bit.

The code itself should be able to work on Windows Vista in theory, but Qt5 has dropped Vista support long time ago. And Qt6 will only support Win10.

UNIX

A not too old version of Linux and macOS, 32 bit & 64 bit.

Requirements

Win32

Component Requirement Additional Information
Qt >= 5.6 Only the core and gui modules are required
Compiler >= C++11 MSVC, MinGW, Clang-CL, Intel-CL or cross compile from Linux/macOS are all supported

UNIX

Component Requirement Additional Information
Qt >= 5.15 This code uses two functions, startSystemMove and startSystemResize, which are introduced in Qt 5.15
Compiler >= C++11 MSVC, MinGW, Clang-CL, Intel-CL / GCC, Clang, ICC are all supported

Known Bugs

Please refer to https://github.com/wangwenx190/framelesshelper/issues for more information.

License

MIT License

Copyright (C) 2021 by wangwenx190 (Yuhang Zhao)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].