Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/epasveer/qdetachtabwidget
Extends the QTabWidget widget to have detachable/reattachable tabs.
https://github.com/epasveer/qdetachtabwidget
qt qt-framework qt-widgets qtabwidget
Last synced: 4 months ago
JSON representation
Extends the QTabWidget widget to have detachable/reattachable tabs.
- Host: GitHub
- URL: https://github.com/epasveer/qdetachtabwidget
- Owner: epasveer
- License: mit
- Created: 2022-02-13T16:12:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-07T23:11:39.000Z (4 months ago)
- Last Synced: 2024-10-12T00:42:50.746Z (4 months ago)
- Topics: qt, qt-framework, qt-widgets, qtabwidget
- Language: C++
- Homepage:
- Size: 85.9 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
QDetachTabWidget
==================QDetachTabWidget is an extenstion of QTabWidget to implement detachable tabs.
Doing a RMB click on any tab in the tab widget will bring up a small menu to detach the
tab into a separate window. The separated window can be resized and
moved anywhere on your screen. Note, it can not be closed using the window's menu bar.In the QDetachTabWidget, a blank widget is put in the place of the detached widget. This
blank widget will have a 'Reattach' button in its center. QDetachTabWidget remembers the
detached widget and the placeholder widget. If you RMB click on the tab again, it will
show the small menu again where you can then reattach the widget.This implemenation handles the cases of movable tabs and closeable tabs.
Copy QDetachTabWidget.h and QDetachTabWidget.cpp to your project.
Comes with a test program (main.cpp)ScreenShot
==========![](images/screenshot.png)
![](images/screenshot_reattach.png)Building QDetachTabWidget demo test program
===========================================Download the latest code using 'clone'.
% git clone https://github.com/epasveer/QDetachTabWidget
Setup cmake and build
% cd QDetachTabWidget/src
% cd build
% cmake ..% make
Install it (or not), which will usually copy it to /usr/local/bin.
May need root access.% cd QDetachTabWidget/src/build
% sudo make installLICENSE
=======QDetachTabWidget source code is licensed under the M.I.T. License.