Coder Social home page Coder Social logo

kddockwidgets's Introduction

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.

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 (Should 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

Licensing

KDDockWidgets is (C) 2018-2019, Klarälvdalens Datakonsult AB, and is available under the terms of the GPLv2 (see LICENSE.GPL.txt).

Contact KDAB at [email protected] if you need different licensing options.

Get Involved

KDAB will happily accept external contributions; however, all contributions will require a signed Contributor License Agreement (see docs/KDDockWidgets-CopyrightAssignmentForm.docx).

Contact [email protected] for more information.

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 http://www.kdab.com to meet the people who write code like this.

kddockwidgets's People

Contributors

albert-astals-cid-kdab avatar iamsergio avatar jcelerier avatar mkrus avatar montel avatar renatofilho avatar winterz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.