Results 1 to 5 of 5

Thread: Interactive Widget with QListview

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Interactive Widget with QListview

    Is there a way to have the whole widget as an editor and how can i create it?
    Yes, use custom editor re-implmenting QStyledItemDelegate::createEditor(), and return what erver widget you want.

    How do i make a widget being in "edit mode"?
    This custom widget will be visible only while editing the item. Please see setEditTriggers
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  2. The following user says thank you to Santosh Reddy for this useful post:

    renevolution (23rd February 2015)

  3. #2
    Join Date
    Feb 2015
    Location
    Cologne/Germany
    Posts
    9
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Interactive Widget with QListview

    I just understood the editor stuff.
    Thanks a lot man. Really really helpful.

Similar Threads

  1. smal, non-rectangular interactive widget approaches
    By jcbikeski in forum Qt Programming
    Replies: 1
    Last Post: 15th August 2011, 21:53
  2. Multi Widget focus problem with QListView in s60
    By ericleopard in forum Qt Programming
    Replies: 0
    Last Post: 11th July 2011, 04:29
  3. Display widget as items in a QListView
    By remy_david in forum Qt Programming
    Replies: 0
    Last Post: 10th January 2011, 10:23
  4. add custom widget items to QListView or QListWidget
    By yazwas in forum Qt Programming
    Replies: 2
    Last Post: 16th September 2010, 22:36
  5. Replies: 2
    Last Post: 18th February 2010, 15:05

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.