How to prevent “QPainter::begin: A paint device can only be painted by one painter at a time.” error log in Qt

Hi guys

While i was making course project, i used QGraphicsview. And i faced with

“QPainter::begin: A paint device can only be painted by one painter at a time.” error log.

and i came across this error log in qtcenter, this error log is caused by using 2 QPainter object.

for detail http://www.qtcentre.org/archive/index.php/t-22570.html

About these ads
    • moslem
    • January 17th, 2013

    yes i have soled this problem you must use one QPainter object to use QPrinter

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: