Results 1 to 6 of 6

Thread: Custom Listview with all-time editable items

  1. #1
    Join Date
    Sep 2006
    Location
    Belgrade
    Posts
    28
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question Custom Listview with all-time editable items

    I need to create a list of widgets for editing my data model. Every item needs to be "interactive" all the time - to respond to user interaction, and even change it's size.

    Similar effect can be found in the Amarok player - the stars for song popularity can be clicked and worked with even when there is no request for editing.

    Do you have any example or text for me to read on how to achieve this in QT4?

    Last edited by ivan.cukic; 6th September 2006 at 11:16.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Custom Listview with all-time editable items

    Can you explain a bit more what exactly do you want? What do you mean by "a list of widgets"? You can use QAbstractItemView::setIndexWidget() to embed a widget into an item. "Interactiveness" of widgets (widgets or items?) depends only on your implementation.

  3. #3
    Join Date
    Sep 2006
    Location
    Belgrade
    Posts
    28
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Custom Listview with all-time editable items

    Thanks, I'll try that.

    One image is worth thousand words - i need to accomplish something like this mockup:

    http://alas.matf.bg.ac.yu/~mr02014/kamion2.jpg

    I have the widget that does everything I want, and now I only need to place it in the list... Cheers!
    While you were hanging yourself on someone else's words
    Dying to believe in what you heard
    I was staring straight into the shining sun

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Custom Listview with all-time editable items

    Quote Originally Posted by ivan.cukic
    Thanks, I'll try that.

    One image is worth thousand words - i need to accomplish something like this mockup:

    http://alas.matf.bg.ac.yu/~mr02014/kamion2.jpg

    I have the widget that does everything I want, and now I only need to place it in the list... Cheers!
    I think you don't want/need widgets at all. The only widget you need is QListView and a good item model which allows items to be checkable and to change their size. Standard QListView can easily handle that.

  5. #5
    Join Date
    Sep 2006
    Location
    Belgrade
    Posts
    28
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Custom Listview with all-time editable items

    Ok. I'll try.
    While you were hanging yourself on someone else's words
    Dying to believe in what you heard
    I was staring straight into the shining sun

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Custom Listview with all-time editable items

    Check out different itemviews examples that come with Qt.

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.