Results 1 to 6 of 6

Thread: Expand item in QListView

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2009
    Posts
    18
    Thanks
    1

    Default Expand item in QListView

    Hi, there, how Can i expand the item in QListView in Qt v4.6?
    Thnaks.

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Expand item in QListView

    Quote Originally Posted by Kode.Cooper View Post
    Hi, there, how Can i expand the item in QListView in Qt v4.6?
    Thnaks.
    Expand in list view
    Are you sure, or you mean QTreeView ?

  3. #3
    Join Date
    Dec 2009
    Posts
    18
    Thanks
    1

    Default Re: Expand item in QListView

    if the item has been selected, then display more detail information, or not.
    Just like the picture describled.pic.jpg

  4. #4
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Expand item in QListView

    I would use QTreeView.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  5. #5
    Join Date
    Dec 2009
    Posts
    18
    Thanks
    1

    Default Re: Expand item in QListView

    Quote Originally Posted by spirit View Post
    I would use QTreeView.
    Thanks, Spirit, But, how can i move the "+" or "|" from left to right?
    and how to hide the "|" icon by using delegate?

  6. #6
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Expand item in QListView

    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  7. The following user says thank you to spirit for this useful post:

    Kode.Cooper (30th December 2009)

Similar Threads

  1. QListView scroll height (solved)
    By efegea in forum Qt Programming
    Replies: 0
    Last Post: 26th April 2009, 14:06
  2. how to move item up and down in QListView
    By zhanglr in forum Qt Programming
    Replies: 3
    Last Post: 1st August 2008, 14:39
  3. QListView word wrap
    By serega in forum Qt Programming
    Replies: 17
    Last Post: 30th August 2007, 03:13
  4. QDialog / QListView problem
    By harakiri in forum Qt Programming
    Replies: 1
    Last Post: 10th July 2007, 18:31
  5. Subclass QListView to show two colums in one
    By Mookie in forum Qt Programming
    Replies: 2
    Last Post: 23rd June 2007, 02:12

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
  •  
Qt is a trademark of The Qt Company.