Hi;
I developped an application drawing images using QPainter.
First on OpenSUSE 11.0 with Qt 4.4.0, and it WORKS and print pictures, but have warnings for each picture I print.
QPixmap: It is not safe to use pixmaps outside the GUI thread
X Error: RenderBadGlyphSet (invalid GlyphSet parameter) 160
Extension: 148 (RENDER)
Minor opcode: 25 (RenderCompositeGlyphs32)
Resource id: 0x0
QPixmap: It is not safe to use pixmaps outside the GUI thread
X Error: RenderBadGlyphSet (invalid GlyphSet parameter) 160
Extension: 148 (RENDER)
Minor opcode: 25 (RenderCompositeGlyphs32)
Resource id: 0x0
To copy to clipboard, switch view to plain text mode
Second on Ubuntu 9.10 with Qt 4.5.3 it diden't work, and didnt print anything with the same warnings.
Here is the code of paintEvent methode of the Widget I want to paint.
painter.begin(this);
painter.drawImage(point,image);
painter.end();
}
void paintEvent(QPaintEvent *event){
const QPoint point(100,100);
QImage image(pictureBuffer, width, height, QImage::QImage::Format_RGB888);
QPainter painter;
painter.begin(this);
painter.drawImage(point,image);
painter.end();
}
To copy to clipboard, switch view to plain text mode
Thank you for helping.
Bookmarks