Results 1 to 2 of 2

Thread: QListView and custom widgets in each cell

  1. #1
    Join Date
    Feb 2007
    Location
    Wroclaw, Poland
    Posts
    72
    Thanks
    6
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QListView and custom widgets in each cell

    Welcome

    I've got model with data and want to display them in Qistview. Soon I've discovered that text displayed in rows isn't enough. I need a way to display data from model in my own custom widget placed in each cell.
    QListWidget won't work - he doesn't wish to work with model, data must be set and modified manually.
    I could use QScrollArea, but effect will be like above - no automagically data updating from model changes.

    How can I modify or subclass QListView (or similar classes)? Something what wouldn't require manually painting my widgets in each cell.

  2. #2
    Join Date
    Feb 2007
    Location
    Wroclaw, Poland
    Posts
    72
    Thanks
    6
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QListView and custom widgets in each cell

    Problem was solved with QAbstractItemView::openPersistentEditor.
    Now I can activate and open as many editors/delegates as I need. And they won't be hiding when I clicked on other item.

Similar Threads

  1. container populated with custom widgets
    By momesana in forum Qt Programming
    Replies: 2
    Last Post: 16th April 2006, 21:02

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.