Results 1 to 3 of 3

Thread: QTreeView and QStandardItemModel limitations when using custom delegates

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2014
    Posts
    9
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default QTreeView and QStandardItemModel limitations when using custom delegates

    Untitled.png

    Hi all,

    I have problem using QTreeView with delegates in a QStandardItemModel model. I used the setItemDelegateForColumn method to apply my delegate to the second column of my QTreeView but it is also applied on the "root" rows column which I don't want. It doesn't seem possible to apply a delegate on a specific number of cells.

    I attached a picture to this thread showing my ongoing result. If mya briefly comment it, I would like the <arbiter> row ComboBox delegate to dissapear. What do I have to do in order to get what I want ? Implement a custom Model or a Custom view ?

    Ideally I would like to implement the "Property Editor" of QtCreator but I don't know how to do this.

    Thanks for your help
    Last edited by enter; 4th March 2014 at 20:53.

Similar Threads

  1. Custom tablemodel and delegates problem.
    By tonnot in forum Qt Programming
    Replies: 2
    Last Post: 9th November 2011, 07:24
  2. QTreeView, Delegates and Persistent Widgets
    By chezifresh in forum Qt Programming
    Replies: 16
    Last Post: 16th December 2009, 09:30
  3. QTreeView - persistentEditor or delegates
    By moti.lahiani in forum Qt Programming
    Replies: 0
    Last Post: 23rd July 2009, 15:19
  4. row height with QTreeView and delegates
    By Philipp in forum Qt Programming
    Replies: 7
    Last Post: 11th November 2008, 10:40
  5. can't do a QTreeView with a QStandardItemModel
    By Nuria in forum Qt Programming
    Replies: 4
    Last Post: 27th July 2006, 00:41

Tags for this Thread

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.