Qt-interest Archive, May 2008
glwidget redraw problems
Message 1 in thread
Hi,
I've changed my canvas from using a regular QWidget to QGLWidget and
that gave me the speed I needed. The problem however, is that I'm
redraw problems. If I redraw just a potion of the screen,
update(QRect), the non-redrawn potion turns twisted black.
That was solved by always make a full redraw, update(). However, I'm
still getting problems where the application isn't redraw
automatically, such as when the screensaver is "stopped", then I get a
black screen on my application until the first forced redraw.
Is it so that I actually have to make a manual redraw once in a while
when using GL?
--
[ signature omitted ]
Message 2 in thread
Hello. I never experienced a problem like that when using the QGLWidget, it
may be related to your particular setup. Which Qt version are you using ?
From what you write it seems that in some place somebody is drawing
that 'black' background (since in opengl if you want a black rectangle you
have to draw it). Are you using clipping? Did you set some other flags to the
QGraphicsView ? (I think that's the canvas you're referring to).
Regards,
Enrico Ros
On Friday 09 May 2008 14:27:10 Robin Helgelin wrote:
> Hi,
>
> I've changed my canvas from using a regular QWidget to QGLWidget and
> that gave me the speed I needed. The problem however, is that I'm
> redraw problems. If I redraw just a potion of the screen,
> update(QRect), the non-redrawn potion turns twisted black.
>
> That was solved by always make a full redraw, update(). However, I'm
> still getting problems where the application isn't redraw
> automatically, such as when the screensaver is "stopped", then I get a
> black screen on my application until the first forced redraw.
>
> Is it so that I actually have to make a manual redraw once in a while
> when using GL?
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Fai conoscere la tua azienda con l'invio di newsletter e campagne email marketing. Con soli 250 Euro incrementi la tua visibilità!
*
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?midq50&d-5
--
[ signature omitted ]