[Qt-interest] How to get to know weather the item is selected or not from indexes in listview

Ramesh ramesh.bs at robosoftin.com
Fri Mar 26 13:57:45 CET 2010


Thanks, erik, 

 

But By getting the item we can't check for the selection status,

Instead I have done like this,

 

mylistview->selectionModel()->isSelected(itemindex);

 

now I am getting selected item

 

 

 

 

From: Erik Kruyt [mailto:erik at forcheck.nl] 
Sent: Friday, March 26, 2010 6:15 PM
To: 'Ramesh'; qt-interest at trolltech.com; QtS60-feedback at trolltech.com
Subject: RE: [Qt-interest] How to get to know weather the item is selected
or not from indexes in listview

 

Get the item and apply isSelected().

Otherwise get the list of selected items with selectedItems().

 

Erik

 

Forcheck b.v.

Torenmolen 23

2317 NV Leiden

Netherlands

 

Van: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] Namens Ramesh
Verzonden: vrijdag 26 maart 2010 13:33
Aan: qt-interest at trolltech.com; QtS60-feedback at trolltech.com
Onderwerp: [Qt-interest] How to get to know weather the item is selected or
not from indexes in listview

 

Hi,

 

How to get to know, weather the item is selected or not from indexes in Qt
listview?

 

Thanks in advance

 

 

-----------------------------------------------

Robosoft Technologies - Come home to Technology

Disclaimer: This email may contain confidential material. If you were not an
intended recipient, please notify the sender and delete all copies. Emails
to and from our network may be logged and monitored. This email and its
attachments are scanned for virus by our scanners and are believed to be
safe. However, no warranty is given that this email is free of malicious
content or virus.

 


-----------------------------------------------
Robosoft Technologies - Come home to Technology

Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100326/467fc57a/attachment.html 


More information about the Qt-interest-old mailing list