{"id":16027018,"url":"https://github.com/alexpdev/qtframeless","last_synced_at":"2026-03-05T21:10:09.073Z","repository":{"id":115628623,"uuid":"579548355","full_name":"alexpdev/QtFrameless","owner":"alexpdev","description":"PySide6 implementation of resizable, draggable, and frameless QMainWindow widget.","archived":false,"fork":false,"pushed_at":"2023-06-30T09:27:34.000Z","size":1184,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T06:52:00.833Z","etag":null,"topics":["framelesswindow","gui","pyside6","qt","widget"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexpdev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-18T03:38:35.000Z","updated_at":"2024-11-10T13:52:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"c48367b4-e137-45a6-8381-39d590d93fbb","html_url":"https://github.com/alexpdev/QtFrameless","commit_stats":{"total_commits":30,"total_committers":1,"mean_commits":30.0,"dds":0.0,"last_synced_commit":"bd19a8d3cd9eccd6e256c550a21bd687b0db51c6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexpdev%2FQtFrameless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexpdev%2FQtFrameless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexpdev%2FQtFrameless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexpdev%2FQtFrameless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexpdev","download_url":"https://codeload.github.com/alexpdev/QtFrameless/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243901170,"owners_count":20366251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["framelesswindow","gui","pyside6","qt","widget"],"created_at":"2024-10-08T20:04:36.771Z","updated_at":"2026-03-05T21:10:09.016Z","avatar_url":"https://github.com/alexpdev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QtFrameless\n\n![QtFrameless](./assets/QtFrameless.png)\n\n--------------------------\n\n## Overview\n\nA PySide6 Implementation of a draggable, resizable, and frameless QMainWindow widget.\nIt comes with a built in title bar with standard close, maximize and minimize buttons,\nhowever it users can also provide their own Titlebar QWidget subclass.\n\n\n## Features\n\n-   Frameless\n-   Custom Title Bar\n-   Resizeable\n-   Draggable\n-   Pluggable\n-   Extensible\n\n## Install\n\nUsing PyPi\n\n```\npip install QtFrameless\n```\n\nUsing git\n\n```\ngit clone https://github.com/alexpdev/QtFrameless.git\ncd QtFrameless\npip install .\n```\n\n## Examples\n\nThe simplest possible example:\n\n```python3\nfrom PySide6.QtWidgets import QApplication\nfrom QtFrameless import FramelessWindow\n\napp = QApplication([])\nFramelessWindow().show()\napp.exec()\n```\n\n![basic.py](./examples/basic.gif)\n\n----------------------------\n\nAnother simple `Hello World` example that uses subclassing and changes \nthe window title.\n\n```python3\nfrom PySide6.QtWidgets import QApplication\nfrom QtFrameless import FramelessWindow\n\nclass MainWindow(FramelessWindow):\n    def __init__(self):\n        super().__init__()\n        self.setWindowTitle(\"HELLO WORLD!\")\n```\n\n![helloworld](./examples/helloworld.gif)\n\n----------------------------\n\n\nExample that creates a `QTextEdit` widget as the central widget.\n\n```python3\nfrom PySide6.QtWidgets import QApplication, QTextEdit\nfrom QtFrameless import FramelessWindow\n\nclass MainWindow(FramelessWindow):\n    def __init__(self):\n        super().__init__()\n        self.setWindowTitle(\"Text Editor\")\n        self.textEdit = QTextEdit(parent=self)\n        self.setCentralWidget(self.textEdit)\n        self.setStyleSheet(\"QTextEdit {border: 1px solid black;}\")\n```\n\n![texteditor](./examples/texteditor.gif)\n\n----------------------------\n\nAn example of providing a custom widget class to use as the title bar.\n\n```python3\nfrom PySide6.QtWidgets import *\nfrom QtFrameless import FramelessWindow\n\nclass TitleBar(QWidget):\n    def __init__(self, parent=None):\n        super().__init__(parent=parent)\n        self.layout = QHBoxLayout(self)\n        self.setup_menubar()\n        self.button = QPushButton(\"CLOSE\", self)\n        self.button.clicked.connect(app.exit)\n        self.layout.addWidget(self.menu_bar)\n        self.layout.addWidget(self.button)\n        self.setMaximumHeight(50)\n\n    def setup_menubar(self):\n        self.menu_bar = QMenuBar()\n        self.file_menu = QMenu(\"File\")\n        self.options_menu = QMenu(\"Options\")\n        self.edit_menu = QMenu(\"Edit\")\n        self.menu_bar.addMenu(self.options_menu)\n        self.menu_bar.addMenu(self.file_menu)\n        self.menu_bar.addMenu(self.edit_menu)\n        self.save_action = QAction(\"Save\")\n        self.exit_action = QAction(\"Exit\")\n        self.about_action = QAction(\"About\")\n        self.copy_action = QAction(\"Copy\")\n        self.paste_action = QAction(\"Paste\")\n        self.cut_action = QAction(\"Cut\")\n        self.file_menu.addActions([self.save_action, self.exit_action])\n        self.edit_menu.addActions(\n            [self.copy_action, self.cut_action, self.paste_action])\n        self.options_menu.addAction(self.about_action)\n\nif \"main\" in __name__:\n    app = QApplication([])\n    window = FramelessWindow(titleBar=TitleBar)\n    window.show()\n    app.exec()\n```\n\n![customtitlebar.py](./examples/customtitlebar.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexpdev%2Fqtframeless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexpdev%2Fqtframeless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexpdev%2Fqtframeless/lists"}