Results 1 to 2 of 2

Thread: Editable QListView Column ??

  1. #1
    Join Date
    Mar 2006
    Posts
    47
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11

    Default Editable QListView Column ??

    Hi,
    I want to make QListView's one column editable in each QListViewItem. I have three columns in a QListView (Name, Extension,Size) , here i want to edit Size at run time.

    Please assist me how can i do this.

    Best Regards

  2. #2
    Join Date
    Jan 2006
    Location
    Mountain View, CA
    Posts
    279
    Thanked 42 Times in 37 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Editable QListView Column ??

    See the docs:
    Qt3:
    QListViewItem::setRenameEnabled ( int col, bool b )

    Qt4:
    Override QAbstractItemModel::flags() to return Qt::ItemIsEditable.
    Save yourself some pain. Learn C++ before learning Qt.

Similar Threads

  1. Subclass QListView to show two colums in one
    By Mookie in forum Qt Programming
    Replies: 2
    Last Post: 23rd June 2007, 02:12
  2. QTreeWidget - Making a Column editable.
    By Preeteesh in forum Qt Programming
    Replies: 1
    Last Post: 16th June 2007, 12:02
  3. Replies: 0
    Last Post: 10th November 2006, 13:46
  4. hidden QListView column suddenly visible
    By edb in forum Qt Programming
    Replies: 10
    Last Post: 27th January 2006, 08:00
  5. QListView and column moving
    By gadnio in forum Qt Programming
    Replies: 10
    Last Post: 5th January 2006, 17:13

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.