[Qt-interest] [QtS60-feedback] Re: text is exceeding the listview bounds in Qt
Ramesh
ramesh.bs at robosoftin.com
Tue Mar 16 12:01:57 CET 2010
Thanks sami..
-----Original Message-----
From: sami.merila at nokia.com [mailto:sami.merila at nokia.com]
Sent: Tuesday, March 16, 2010 4:27 PM
To: ramesh.bs at robosoftin.com; abhishekworld at gmail.com
Cc: qts60-feedback at trolltech.com; qt-interest at trolltech.com
Subject: RE: [QtS60-feedback] Re: [Qt-interest] text is exceeding the
listview bounds in Qt
Qt does not support marquee effect for text labels out-of-the-box.
S.
>-----Original Message-----
>From: ext Ramesh [mailto:ramesh.bs at robosoftin.com]
>Sent: 16. maaliskuuta 2010 11:24
>To: Merila Sami (Nokia-D/Tampere); abhishekworld at gmail.com
>Cc: qts60-feedback at trolltech.com; qt-interest at trolltech.com
>Subject: RE: [QtS60-feedback] Re: [Qt-interest] text is
>exceeding the listview bounds in Qt
>
>No.. its working..
>I tried like this
>
>painter->drawText(Gradiantrect, Qt::AlignCenter,
>sfm.elidedText(subText,
>option.textElideMode, rectwidth));
>
>if the text length is bigger then the width of rectangle..
>three dots are appearing after the text..
>
>one more question sami, is it possible to give MARQUEE effect
>to string using elided text..
>
>Thanks..
>
>
>
>-----Original Message-----
>From: sami.merila at nokia.com [mailto:sami.merila at nokia.com]
>Sent: Tuesday, March 16, 2010 2:33 PM
>To: ramesh.bs at robosoftin.com; abhishekworld at gmail.com
>Cc: qts60-feedback at trolltech.com; qt-interest at trolltech.com
>Subject: RE: [QtS60-feedback] Re: [Qt-interest] text is
>exceeding the listview bounds in Qt
>
>It might be an error in the QS60Style. If you can either send
>me a screenshot, or better yet, a small test app that can
>reproduce the issue, then I will check it.
>
>S.
>
>>-----Original Message-----
>>From: qts60-feedback-bounces at trolltech.com
>>[mailto:qts60-feedback-bounces at trolltech.com] On Behalf Of ext
>>ramesh.bs at robosoftin.com
>>Sent: 15. maaliskuuta 2010 16:04
>>To: Abhishek Patil
>>Cc: qts60-feedback at trolltech.com; 'qt-interest'
>>Subject: [QtS60-feedback] Re: [Qt-interest] text is exceeding the
>>listview bounds in Qt
>>
>>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.
>>--
>>List archive and information: http://trolltech.com/%(listname)s/
>>
>
>-----------------------------------------------
>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.
More information about the Qt-interest-old
mailing list