Results 1 to 3 of 3

Thread: Problem with item selected in a list

  1. #1
    Join Date
    May 2009
    Posts
    21
    Thanks
    11
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Problem with item selected in a list

    Hi,

    in QListWidget, how can i see if any of the item is selected! There is not something like: listWidget.hasSelection() ?

    I need only to know if something is selected not what item, how can i do that?

    thanks

  2. #2
    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: Problem with item selected in a list

    take a look at QListWidget::selectedItems.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

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

    0xl33t (3rd August 2009)

  4. #3
    Join Date
    May 2009
    Posts
    21
    Thanks
    11
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problem with item selected in a list

    Quote Originally Posted by spirit View Post
    yes , i didn't see that! I check if he returned list is empty!

    thanks

Similar Threads

  1. Problem related to porting from QT3 to QT4 in list items
    By rohitjun in forum Qt Programming
    Replies: 5
    Last Post: 1st June 2007, 09:05
  2. Replies: 1
    Last Post: 19th April 2007, 22:23
  3. problem with "QListWidget" item
    By impeteperry in forum Qt Programming
    Replies: 6
    Last Post: 16th April 2007, 18:00
  4. Comparing Items In List Box
    By kenny_isles in forum Qt Programming
    Replies: 9
    Last Post: 21st February 2007, 13:06
  5. Programattically Clicking an Item in QTreeView
    By johnny_sparx in forum Qt Programming
    Replies: 4
    Last Post: 11th May 2006, 16:26

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.