Results 1 to 3 of 3

Thread: Setting one* column of QTreeView to be editable

  1. #1
    Join Date
    Oct 2006
    Posts
    83
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Setting one* column of QTreeView to be editable

    I know how to set an entire treeview to be editable:

    ui.treeView->setEditTriggers(QAbstractItemView:: DoubleClicked)

    But how do I pick only a specific column to be editable? I only want the user to be able to edit one specific column.

    Thanks in advance...

  2. #2
    Join Date
    Oct 2006
    Posts
    83
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Setting one* column of QTreeView to be editable

    I found my solution on another post:
    http://www.qtcentre.org/forum/f-qt-p...dget-3939.html

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Setting one* column of QTreeView to be editable

    You can control it with QAbstractItemModel::flags(). Only items that have Qt::ItemIsEditable flag set are editable.

Similar Threads

  1. QTreeView / QTreeWidget
    By morty in forum Qt Programming
    Replies: 4
    Last Post: 8th October 2006, 00:40
  2. Setting Delegates per Column
    By Jimmy2775 in forum Qt Programming
    Replies: 2
    Last Post: 30th May 2006, 21:39
  3. Editable QListView Column ??
    By darpan in forum Qt Programming
    Replies: 1
    Last Post: 3rd May 2006, 18:55
  4. hidden QListView column suddenly visible
    By edb in forum Qt Programming
    Replies: 10
    Last Post: 27th January 2006, 08:00
  5. How to dispay an icon in the first column of QTreeView
    By yogeshm02 in forum Qt Programming
    Replies: 1
    Last Post: 5th January 2006, 15:51

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
  •  
Qt is a trademark of The Qt Company.