[Qt-interest] How to get the icon by default right side of listview
Ramesh
ramesh.bs at robosoftin.com
Tue Mar 16 08:00:49 CET 2010
Thanks Andre,
no, I dont want to use table view..
in paint event of listview I can draw icon at my own position...
just I asked is there any inbuilt support in Qt listview to draw icon at
right side..
because by default the icon are coming at left side..
I tried one thig at paint event of listview before calling the base class
paint
"option.QStyleOptionViewItem(QStyleOptionViewItem::Right);"
Its not working,, it says illegal type..
Thanks..
-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Andre Somers
Sent: Tuesday, March 16, 2010 12:20 PM
To: Qt-interest
Subject: Re: [Qt-interest] How to get the icon by default right side of
listview
Ramesh wrote:
>
> 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?
>
>
>
One option could be to use a table view instead, and just put your icon
in a column of it's own on the right side of the text column.
André
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
-----------------------------------------------
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.
More information about the Qt-interest-old
mailing list