[Qt-interest] QTreeWidget and blinking

NARCISO, Rui RUI.NARCISO at airbus.com
Tue Mar 31 12:57:20 CEST 2009


Brilliant
works like a charm.
thanks

Rui

-----Message d'origine-----
De : qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com]De la part de R. Reucher
Envoyé : mardi 31 mars 2009 11:56
À : qt-interest at trolltech.com
Objet : Re: [Qt-interest] QTreeWidget and blinking


On Tue March 31 2009 11:39:11 NARCISO, Rui wrote:
> Hi
>
> Is there any way to make a QtreeWidgetItem placed on a QtreeWidget to be
> written in red and blink ??? By QtreeWidgetItem I mean a line with several
> columns of text only ..
You may use

QTreeWidgetItem::setForeground(int column, const QBrush & brush)

for this, and a QTimer to "animate" it (by changing the foregound color on 
each timeout() signal).

HTH, René
-- 
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/

As a professional humorist, I often get letters from readers who are
interested in the basic nature of humor.  "What kind of a sick
perverted disgusting person are you," these letters typically ask,
"that you make jokes about setting fire to a goat?" ...
		-- Dave Barry, "Why Humor is Funny"

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest

This mail has originated outside your organization, either from an external partner or the Global Internet.
Keep this in mind if you answer this message.



The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other then the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.





More information about the Qt-interest-old mailing list