[Qt-interest] text is exceeding the listview bounds in Qt
ramesh.bs at robosoftin.com
ramesh.bs at robosoftin.com
Mon Mar 15 15:04:10 CET 2010
Hi.. Abhi thanks for the reply.
i know how to set the delegate and all.. in the paint event i need to draw
the string over a gradient rectangle.. but the problem is if the string is
big i don't no what to do.. either i need to trim or any other else option
there?.. i don't no tat trimming logic too so.. i am asking any body know
how to tackle this problem.
> Hi Ramesh,
> I think you should try Delegates, following is the link for that
> http://qt.nokia.com/doc/4.6/model-view-delegate.html
>
> Ramesh wrote:
>>
>> Hi.
>>
>>
>>
>> I need to customize the listview, in that I am placing an icon and a
>> text at the center of the listview.
>>
>>
>>
>> If the text length is bigger then the list rectangle length.. the text
>> is coming over the icon first letter of the string is not visible..
>>
>>
>>
>> How to avoid this situation? Is it possible to give marique effect for
>> the string?
>>
>>
>>
>> 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.
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
> Enjoy,
>
> --
> Abhishek Patil | http://thezeroth.net
> +91-9620022244 | abhishek at thezeroth.net
>
>
-----------------------------------------------
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