Results 1 to 2 of 2

Thread: QListView / QListWidget and QItemDelegate Help

  1. #1
    Join Date
    Jan 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default QListView / QListWidget and QItemDelegate Help

    So I'm trying to figure out how to work with the QItemDelegate in a QListWidget or QListView, and so far, I haven't had much luck finding a straightforward tutorial or guide explaining how to use these together.

    I'm trying to create a couple color / style palettes, and I figure the best way is to utilize these two objects, rather than a QScrollArea with custom widgets placed in it. I will eventually store the colors in a palette, with the palette just being an array of my color objects (these will not just be colors, but objects storing a color, style, and a few other properties). I figure I can then generate the GUI version of the palette by using a few properties in the object.

    Here are a couple wireframes of what I'm trying to accomplish - I want to have two versions of the palette:
    sGQTH.jpg

    Honestly, I still cannot figure out how to use the QItemDelegate after reading numerous guides and posts and watching a few videos. Am I right about using a QListView, or should I stick with a QScrollArea for each area, and just create a new object for each item? Anyone have a bit of guidance for me?

    Thanks

  2. #2
    Join Date
    Jan 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QListView / QListWidget and QItemDelegate Help

    After a bit more thought, I'm wondering if I should actually go for a QScrollArea with a custom object to directly paint onto it - I'll need to be able to manipulate each "item" in the list - left clicks, right clicks, a few tiny buttons on each that will handle their own clicks. I'll just have to do a bit of calculations when pai

Similar Threads

  1. Replies: 1
    Last Post: 15th May 2011, 11:11
  2. QListView Text Elide Like QListWidget
    By Kel Solaar in forum Qt Programming
    Replies: 6
    Last Post: 13th May 2010, 06:44
  3. QListWidget or QListView with QLabel(s)
    By lukass in forum Newbie
    Replies: 6
    Last Post: 11th August 2008, 10:48
  4. QListWidget::currentRowChanged() for QListView
    By Lykurg in forum Qt Programming
    Replies: 1
    Last Post: 13th March 2007, 16:27
  5. QListWidget / QListView Bug ?
    By guilugi in forum Qt Programming
    Replies: 5
    Last Post: 16th November 2006, 12:33

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.