{"id":24738422,"url":"https://github.com/houmain/qmainwindow-tabs","last_synced_at":"2026-05-16T13:04:43.592Z","repository":{"id":241338229,"uuid":"684225862","full_name":"houmain/QMainWindow-Tabs","owner":"houmain","description":"QMainWindow dock title bars and tabs combined","archived":false,"fork":false,"pushed_at":"2023-08-28T17:53:37.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T22:39:10.045Z","etag":null,"topics":["qdockwidget","qmainwindow","qt5","qt6","qtabbar","qwidget"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/houmain.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2023-08-28T17:52:38.000Z","updated_at":"2024-01-20T02:22:23.000Z","dependencies_parsed_at":"2024-05-27T20:42:04.369Z","dependency_job_id":"3c9150fb-221f-4094-a0e9-e5fe1158d01f","html_url":"https://github.com/houmain/QMainWindow-Tabs","commit_stats":null,"previous_names":["houmain/qmainwindow-tabs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/houmain%2FQMainWindow-Tabs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/houmain%2FQMainWindow-Tabs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/houmain%2FQMainWindow-Tabs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/houmain%2FQMainWindow-Tabs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/houmain","download_url":"https://codeload.github.com/houmain/QMainWindow-Tabs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245000340,"owners_count":20545048,"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":["qdockwidget","qmainwindow","qt5","qt6","qtabbar","qwidget"],"created_at":"2025-01-27T22:37:31.063Z","updated_at":"2026-05-16T13:04:38.566Z","avatar_url":"https://github.com/houmain.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QMainWindow Tabs\n\nAs you might have experienced, QMainWindow behaves quite inconsistently, with dock titles appearing twice when a dock is tabbed and arranging docks by dragging tabs is in vain...\n\nThis project demonstrates how the situation can arguably be improved without completely replacing QMainWindow with another implementation.\n\n## Features\n\n- Dock title bars and tabs are combined into one tab bar.\n- Tab headers can be dragged to rearrange docks.\n- Tab bars can be double clicked to open new tabs.\n- The middle mouse button can be used to close tabs.\n- When tabs are elided a button appears allowing to select further tabs.\n- The selected, all or other tabs can be closed via a context menu.\n\n## Before and after screenshots\n\n![QMainWindow](docs/QMainWindow.png) \u0026nbsp;\n![DockWindow](docs/DockWindow.png)\n\n## Usage\n\nThe projects contains two classes [DockWindow](src/DockWindow.h) and [DockTitle](src/DockTitle.h).\nTogether they form a drop-in-replacement for QMainWindow. So one simply has to derive from DockWindow instead of QMainWindow.\n\n## How does it work\n\nDockWindow derives from QMainWindow and sets a custom dock title bar, which appears and behaves like a QTabBar. Additionally it hides the tab bars potentially created by QMainWindow.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoumain%2Fqmainwindow-tabs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoumain%2Fqmainwindow-tabs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoumain%2Fqmainwindow-tabs/lists"}