Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, July 2007
how to highlight a particular item in list widget


Message 1 in thread

Hi All,

 

I have a requirement where in I have to highlight a particular item in
list widget without selecting it.

I tried setCurrentItem( ), but I want to highlight the item by
specifying the row number of list widget item i.e during the creation of
the widget itself.(without any clicking or any other action).

Please tell me what can be done.

 

Regards

Naveen

 




The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com

Message 2 in thread

Use the models data function to set/change the BackgroundColorRole and
TextColorRole.

 

Scott

 

________________________________

From: naveen.kmrvm@xxxxxxxxx [mailto:naveen.kmrvm@xxxxxxxxx] 
Sent: Monday, July 16, 2007 10:12 PM
To: qt-interest@xxxxxxxxxxxxx
Subject: how to highlight a particular item in list widget

 

Hi All,

 

I have a requirement where in I have to highlight a particular item in
list widget without selecting it.

I tried setCurrentItem( ), but I want to highlight the item by
specifying the row number of list widget item i.e during the creation of
the widget itself.(without any clicking or any other action).

Please tell me what can be done.

 

Regards

Naveen

 


The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.

www.wipro.com