Results 1 to 1 of 1

Thread: Qt Designer (creator) widget box like widget

  1. #1
    Join Date
    Nov 2010
    Qt products
    MacOS X Unix/X11 Windows

    Default Qt Designer (creator) widget box like widget

    Tried to find good example or complete code for Qt Designer (creator) widget box like widget with QWidget or QFrame within. So it should work like QToolBox or QTabWidget but be expandable: possible to view few pages (widgets) at a time, not single one like QToolBox or QTabWidget or QStackedWidget provide. There is a class WidgetBoxTreeWidget in Qt sources for Qt Designer but it is VERY complex and contains much unnecessary things and explicit functionality for me.

    Find just basic implementation and forced to write myself using QTreeWidget. Created sample widget and plugin for Qt Designer, put it on GitHub if somebody else need this and want to improve: It is ready for using however some points good to have improved:

    • Style category button (or panel) closer to Qt Creator (Designer) look or like to LibreOffice Writer Properties Tool Box on the right side
    • Improve pages behaviour in Qt Designer similar to QToolBox: now Designer does not change currentPageIndex PROPERTY and focus on page or category click for some reason
    • Improve pages geometry resizing to content and their layout on design time and on run-time: QTreeWidget automatically increases itemWidget size height (in runtime, not design time - it remains terrible there) if contents is bigger than widget (page) height, however if page size (sizeHint) is bigger than contents - it does not decrease size to necessary minimum.

    Hope for community help or suggestions on these improvements.

    Sample screenshots of current state:

    Last edited by AlekseyK; 16th March 2016 at 14:03. Reason: added more info

Similar Threads

  1. Replies: 3
    Last Post: 31st August 2015, 20:25
  2. Replies: 1
    Last Post: 23rd June 2011, 23:09
  3. Replies: 4
    Last Post: 27th October 2010, 16:43
  4. Replies: 1
    Last Post: 6th May 2010, 10:09
  5. Replies: 3
    Last Post: 17th November 2009, 14:43

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.