[Qt-interest] [QtS60-feedback] How to get the icon by default right side of listview
Ramesh
ramesh.bs at robosoftin.com
Tue Mar 16 10:24:12 CET 2010
Thanks sami..
Ill try this..
any way thanks again..
From: sami.merila at nokia.com [mailto:sami.merila at nokia.com]
Sent: Tuesday, March 16, 2010 2:32 PM
To: ramesh.bs at robosoftin.com; qt-interest at trolltech.com;
QtS60-feedback at trolltech.com
Subject: RE: [QtS60-feedback] How to get the icon by default right side of
listview
Two ideas that could be done:
1) Set the list UI direction to RightToLeft. This should automatically
layout list so that icon is at right. Note that this
might cause unwanted behaviour someplace else.
2) Define your own QStyle by inheriting from QS60Style and set the style
active for your application.
In this new style, implement only QStyle::subElementRect and define rects
for SE_ItemViewItemText
(text rect), SE_ItemViewItemDecoration (icon rect) and possibly
SE_ItemViewItemCheckIndicator.
Note that this somewhat heavy solution.
S.
_____
From: qts60-feedback-bounces at trolltech.com
[mailto:qts60-feedback-bounces at trolltech.com] On Behalf Of ext Ramesh
Sent: 16. maaliskuuta 2010 8:29
To: 'Qt-interest'; QtS60-feedback at trolltech.com
Subject: [QtS60-feedback] How to get the icon by default right side of
listview
Hi..
I want listview to have an icon at right side and text at left side, by
default the icon is coming at left side and text will come after the icon.
How can I disply icon at right side of the listview and text at left side..
Any help on this?
Thanks
-----------------------------------------------
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/20100316/7733e649/attachment.html
More information about the Qt-interest-old
mailing list