Sergio Martins 283d814dc6 indicators: Also install the headers
So that the example app can show how to switch style type
2020-08-23 16:43:54 +01:00
2020-08-12 11:07:32 +01:00
2020-08-05 17:34:20 -04:00
2020-08-12 11:07:32 +01:00
2020-08-23 16:43:54 +01:00
2020-08-22 19:19:59 +01:00
2020-08-07 22:23:08 +01:00
2020-08-15 10:14:53 -04:00
2019-04-24 14:49:01 +01:00
2020-08-07 12:19:27 -04:00
2020-08-07 12:19:27 -04:00
2020-08-07 12:19:27 -04:00
2020-01-07 11:39:33 -05:00
2020-08-07 12:41:03 -04:00
2019-10-29 11:30:26 +01:00

KDDockWidgets

KDDockWidgets is a KDAB effort to provide an advanced docking system for Qt.

Throughout the years KDAB contributed and funded bug fixes and features to QDockWidget. Sadly, this was very painful. Each bug fix or feature took many days of implementation, and an equal number of days just to fix dozens of regressions.

QDockWidget mixes GUI code with logic with state, making it very hard to move forward with new features. Furthermore, our customers were getting more creative with their requests, so it was clear we needed a better docking framework.

You will find more information in these places:

Features

  • Provide advanced docking that QDockWidgets doesn't support

    • Nesting dock widgets in a floating window and docking that group back to main window
    • Docking to any main window, not only to the parent main window
    • Docking to center of main window, or simply removing the concept of "central widget"
    • Main window supporting detachable tabs in center widget
    • Detaching arbitrary tabs from a tab bar into a dock area
    • Exposing inner helper widgets so the user can customize them or provide his own
      • Customize tab widgets
      • Customize title bars
      • Customize window frames
  • Clean codebase

    • Not mixing GUI with state with logic with animations
    • Unit-test everything, even the GUI and DnD operations (140 tests currently)
    • Fuzzer for doing random testing

Screen capture

Roadmap

  • Different forms of docking indicators (through plugins)
  • QtQuick support

Trying out the demo

Open a terminal capable of building Qt5 applications. Make sure you have cmake, ninja, compiler, Qt, etc in PATH.

Feel free to adapt the instructions to suit your cmake generator and operating system. Build and install the KDDockWidgets framework:

$ cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/path/where/to/install ../path/to/kddockwidgets
$ make
$ make install

Now build and run the example:

$ cd path/to/kddockwidgets/examples/dockwidgets/
$ cmake -DCMAKE_PREFIX_PATH=/path/where/to/install
$ make
$ ./kddockwidgets_example

The installation directory defaults to c:\KDAB\KDDockWidgets-<version> on Windows and /usr/local/KDAB/KDDockWidgets-<version> on non-Windows. You can change this location by passing the option -DCMAKE_INSTALL_PREFIX=/install/path to cmake.

Python Bindings

To generate PySide2 bindings, pass -DOPTION_BUILD_PYTHON_BINDINGS=ON to CMake. The bindings will be installed to the passed -DCMAKE_INSTALL_PREFIX. Which might require setting the PYTHONPATH env variable to point to that path when running applications. Alternatively, pass -DPYTHON_BINDINGS_INSTALL_PREFIX=/usr/lib/python3.8/site-packages to CMake (adjust to the python path on your system).

To run the KDDW python example

$ export PYTHONPATH=/kddw/install/path # Only if needed
$ cd python/examples/
$ rcc -g python -o rc_assets.py ../../examples/dockwidgets/resources_example.qrc
$ python3 main.py

Supported Qt versions

KDDockWidgets requires Qt >= 5.9 (or >=5.12 if Python bindings are enabled).

Licensing

KDDockWidgets is (C) 2018-2020, Klarälvdalens Datakonsult AB, and is licensed according to the terms of the GPL 2.0 or GPL 3.0.

Contact KDAB at info@kdab.com to inquire about commercial licensing.

Get Involved

KDAB will happily accept external contributions; however, all contributions require a signed Copyright Assignment Agreement.

Contact info@kdab.com for more information.

Please submit your contributions or issue reports from our GitHub space at https://github.com/KDAB/KDDockWidgets

About KDAB

KDDockWidgets is supported and maintained by Klarälvdalens Datakonsult AB (KDAB).

The KDAB Group is the global No.1 software consultancy for Qt, C++ and OpenGL applications across desktop, embedded and mobile platforms.

The KDAB Group provides consulting and mentoring for developing Qt applications from scratch and in porting from all popular and legacy frameworks to Qt. We continue to help develop parts of Qt and are one of the major contributors to the Qt Project. We can give advanced or standard trainings anywhere around the globe on Qt as well as C++, OpenGL, 3D and more.

Please visit https://www.kdab.com to meet the people who write code like this.

Description
KDAB's Dock Widget Framework for Qt
Readme 24 MiB
Languages
C++ 87%
CMake 8.1%
Python 1.9%
QML 1.8%
C 1%
Other 0.1%