Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt4-preview-feedback Archive, April 2007
QPainter warnings


Message 1 in thread

Hi,

 

In Qt4.3 snapshot 20070411, I see qpainter warnings when object try to
scale small.  You can recreate the problem on Linux in designer using
the Windows Style.  Other styles also have problems, but we use Windows
Style, so that is the most important to me.  You must use designer in
dock windows mode, as I cannot recreate the problem with multiple top
level windows are used.

 

To recreate, open designer on the formwindowsettings.ui file in the
tools/designer/src/designer directory.  Then resize the form much
smaller.  You will see messages like this:

 

QPainter::begin: Paint device returned engine == 0, type: 3

QPainter::setWorldTransform: Painter not active

QPainter::end: Painter not active, aborted

QPixmap::fromImage: Cannot convert a null image

 

These result from trying to open a painter on a QImage that is not
valid.

 

-Paul