Qt-interest Archive, January 2007
OpenGL: Qt equivalent of WM_ERASEBKGND ?
Message 1 in thread
Is there anyway to capture additional information when paintGL is being
called on a QGLWidget?
I'm interested in knowing if paintGL was invoked because an overlapping
window was being moved across the openGL scene.
On Windows this information is obtained by handling the WM_ERASEBKGND
message. Note, I don't want to have to resort to winEvent to intercept
WM_ERASEBKGND, but would rather handle this in a platform-independent
fashion.
Thanks,
Mark
--
[ signature omitted ]
Message 2 in thread
Mark Thompson wrote:
>
> Is there anyway to capture additional information when paintGL is
> being called on a QGLWidget?
>
> I'm interested in knowing if paintGL was invoked because an
> overlapping window was being moved across the openGL scene.
It will be if you do this. What are you trying to do?
- Keith
--
[ signature omitted ]
Message 3 in thread
Hi Keith,
Your question caused me to re-examine my old openGL code. The answer is
that I actually don't need to do this anymore. At one time (when
graphics processors were much slower), I used this overlapping window
information to do the rendering differently (to save cpu cycles), as
opposed to the type of rendering I would do if the user was moving the
scene with the mouse or adding new objects to the scene, etc.
Thanks for the note.
Cheers,
Mark
Keith Sabine wrote:
> Mark Thompson wrote:
>>
>> Is there anyway to capture additional information when paintGL is
>> being called on a QGLWidget?
>>
>> I'm interested in knowing if paintGL was invoked because an
>> overlapping window was being moved across the openGL scene.
> It will be if you do this. What are you trying to do?
>
> - Keith
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
>
>
--
[ signature omitted ]
Message 4 in thread
Hi,
I am using a QTextEdit object as a logger window, and I am sending
messages to it from different points of my application. After I append
something to it I tried to call the repaint() function to force a
repaint of the widget, but unnfortunately it does not work, and a
refresh of the widget happens only later.
Can anybody help me understand how exactly these repaint works, and how
could I really force a repaint of the QTextEdit?
Thank you very much in advance,
Balint
--
[ signature omitted ]
Message 5 in thread
Make sure your event loop gets called. Painting occurs during the event loop.
Scott
________________________________
From: Bálint Miklós [mailto:balint@xxxxxxxxxxx]
Sent: Tue 1/23/2007 10:27 AM
To: qt-interest@xxxxxxxxxxxxx
Subject: QTextEdit repaint
Hi,
I am using a QTextEdit object as a logger window, and I am sending
messages to it from different points of my application. After I append
something to it I tried to call the repaint() function to force a
repaint of the widget, but unnfortunately it does not work, and a
refresh of the widget happens only later.
Can anybody help me understand how exactly these repaint works, and how
could I really force a repaint of the QTextEdit?
Thank you very much in advance,
Balint
--
[ signature omitted ]