[Qt-interest] measure the time it takes to create and paint a control an all its children

Niklaus Hersche niklaus.hersche at gesys.ch
Thu Oct 28 12:32:33 CEST 2010


Hi Altan, thanks for answering.

I thought of something more elegant, maybe an event, or overwriting a
method.

Is the underlying platform graphics subsystem aware of the widget (parent
children) the paint calls belong to.

Nik




-----Ursprüngliche Nachricht-----
Von: Atlant Schmidt [mailto:aschmidt at dekaresearch.com] 
Gesendet: Mittwoch, 27. Oktober 2010 19:15
An: 'niklaus.hersche at gesys.ch'; qt-interest at trolltech.com
Betreff: RE: [Qt-interest] measure the time it takes to create and paint a
control an all it's children

Nik:

  One alternative:

  If you dive down into the Qt sources, you can definitely
  intercept the place(s) where it calls the underlying
  platform graphics subsystem to do the actual painting
  onto the screen.

  I've definitely done this for QWS, the Qt Window Server
  that runs on Embedded Linux but I'm sure it can be done
  for any platform.

                          Atlant

-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Niklaus Hersche
Sent: Wednesday, October 27, 2010 12:24
To: qt-interest at trolltech.com
Subject: [Qt-interest] measure the time it takes to create and paint a
control an all it's children

Hello

I have implemented (Qt 4.5.2) a custom widget with a lot child widgets.
I want to measure the time it takes to create and paint the widget and all
its children.
Since the whole process is event driven, I don't know where to stop the
timer.


Has anybody an idea?

Thanks a lot.

Nik



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

This e-mail and the information, including any attachments, it contains are
intended to be a confidential communication only to the person or entity to
whom it is addressed and may contain information that is privileged. If the
reader of this message is not the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
communication is strictly prohibited. If you have received this
communication in error, please immediately notify the sender and destroy the
original message.

Thank you.

Please consider the environment before printing this email.






More information about the Qt-interest-old mailing list