Results 1 to 3 of 3

Thread: Property Window in QtDesigner

  1. #1
    Join Date
    May 2009
    Location
    Gorontalo
    Posts
    200
    Thanks
    20
    Thanked 5 Times in 5 Posts
    Qt products
    Platforms
    Unix/X11 Windows

    Question Property Window in QtDesigner

    How to make treeview like Property Window in QtDesigner ? That is like one treeview with 4 root ? Every root (QObject, QWidget, QDialog, Layout) have a color different.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Property Window in QtDesigner

    That is normal QTreeView with delegates.
    Have a look at QStyledItemDelegate and QItemDelegate.

  3. #3
    Join Date
    May 2009
    Location
    Gorontalo
    Posts
    200
    Thanks
    20
    Thanked 5 Times in 5 Posts
    Qt products
    Platforms
    Unix/X11 Windows

    Question Re: Property Window in QtDesigner

    Ok, thanks for your reply.

    But actually I have no idea how to reimplement paint for my Delegate, oh yes I try use QStyledItemDelegate.
    I want replace alternate row color in treeview with yellow and make a border-bottom for every row. I have make this with stylesheet and success. But with stylesheet I can't use QBackgroundRole in my model anymore.

Similar Threads

  1. Obtaining the currentTabText property
    By wconstan in forum Newbie
    Replies: 1
    Last Post: 7th December 2009, 06:02
  2. QtDesigner in my app? How to add?
    By sergey_85 in forum Qt Programming
    Replies: 1
    Last Post: 27th October 2009, 06:36
  3. 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
  4. UserCheckable property in QTreeWidget
    By npc in forum Newbie
    Replies: 4
    Last Post: 4th April 2007, 22:40
  5. enum property
    By illuzioner in forum Qt Tools
    Replies: 10
    Last Post: 22nd August 2006, 21:47

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.