Results 1 to 5 of 5

Thread: How can I make a tree like the one in the property editor sidebar of qt designer?

  1. #1
    Join Date
    Jan 2010
    Posts
    19
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default How can I make a tree like the one in the property editor sidebar of qt designer?

    Hi,

    I would like to create a QTreeView or QTreeWidget similar to the one in the 'Property Editor' sidebar in the Qt Designer window: ie the names of a properties in the first column, with checkboxes or QSpinBoxes in the second. What is the best way for me to do this? I am just barely learning about model/view programming right now, so I'm not really sure where to start. Any suggestions would be greatly appreciated, thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How can I make a tree like the one in the property editor sidebar of qt designer?

    Quote Originally Posted by bbad68 View Post
    Any suggestions would be greatly appreciated, thanks!
    Well, since the designer is open source: Get the sources and look there how the trolls did it and learn from the masters

  3. The following user says thank you to Lykurg for this useful post:

    bbad68 (26th January 2010)

  4. #3
    Join Date
    Jun 2015
    Posts
    1
    Platforms
    Windows

    Default Re: How can I make a tree like the one in the property editor sidebar of qt designer?

    Could you tell me where do I get that piece of source code. Or where I can find the source code. I want to implement the same QTreeWidget

    Thanks

  5. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How can I make a tree like the one in the property editor sidebar of qt designer?

    https://github.com/qtproject/qttools for Designer.
    https://github.com/qtproject/qt-creator because Qt Creator has something similar.
    Last edited by ChrisW67; 22nd June 2015 at 21:18.

  6. #5
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How can I make a tree like the one in the property editor sidebar of qt designer?

    There is also QtPropertyBrowser: https://github.com/commontk/QtPropertyBrowser

    It is hard to use, but probably easier to figure out than extracting the property widget from Qt Designer or Qt Creator.

    I've looked at the Qt Designer "PropertyEditor" class in github, and it appears to have at least some dependencies on other parts of Qt Designer; it isn't a stand-alone widget.
    Last edited by d_stranz; 23rd June 2015 at 15:52.

Similar Threads

  1. pixmap filepath in property editor
    By purga in forum Qt Programming
    Replies: 1
    Last Post: 20th November 2009, 13:49
  2. Is there any property editor to use in my program?
    By Morea in forum Qt Programming
    Replies: 2
    Last Post: 25th December 2008, 18:21
  3. QT Designer like property editor
    By dosto.walla in forum Qt Tools
    Replies: 2
    Last Post: 24th October 2008, 00:13
  4. Replies: 3
    Last Post: 19th October 2006, 22:13
  5. Property editor fully featured?
    By brcain in forum Qt Tools
    Replies: 14
    Last Post: 20th September 2006, 15:57

Bookmarks

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.