Results 1 to 2 of 2

Thread: QList item Selection

  1. #1

    Default QList item Selection

    Hello everybody... I have a Qlist that have items and a "Add" button that adds the selected item somewhere... what I want is.. if the user did not select any Items to pop up an error dialog. I could not find any member function of the Qlist that returns a bool saying if an item was actually selected or not... any ideas on how to approach this??? i been trying for hours but could not do it!

    thanks in advance!

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QList item Selection

    A QList has nothing you describe! Are you talking about a QListWidget or a QListView? Have a look at the selection model. With it you can determine if an item is selected.

Similar Threads

  1. QTableView Item Selection
    By johnmauer in forum Qt Programming
    Replies: 16
    Last Post: 25th January 2010, 23:50
  2. QList with pointers item
    By paolom in forum Qt Programming
    Replies: 1
    Last Post: 19th October 2009, 16:16
  3. Item Selection in QListWidget
    By mclark in forum Qt Programming
    Replies: 2
    Last Post: 12th February 2008, 16:53
  4. BEst way to search QList for item
    By steg90 in forum Qt Programming
    Replies: 11
    Last Post: 18th July 2007, 10:41
  5. Replies: 14
    Last Post: 9th November 2006, 09:35

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.