raptorswing / MapGraphics

A tile-based "slippy map" library written in/for C++/Qt. It's meant to enable C++/Qt developers to easily add nice, interactive maps to their applications. Supports zooming, rotating, interactive custom map objects, transparency, etc. It is a Qt map widget that can use tiles from MapQuest, Openstreetmap, or a custom source you define.
Other
163 stars 77 forks source link

Qt 4.8.0, Linux. Warning: Pixmap: It is not safe to use pixmaps outside the GUI thread #1

Closed raptorswing closed 12 years ago

raptorswing commented 12 years ago

When compiled under linux with Qt 4.8.0. "Pixmap: It is not safe to use pixmaps outside the GUI thread" is printed to the debug console many many times. Basically, every time QPixmap is used outside of the GUI thread. Apparently that's a no-no.

I should convert the non-GUI thread code to use QImage or maybe even use QImage everywhere.

raptorswing commented 12 years ago

Fixed it by converting MapTileSource code to use QImage instead of QPixmap. The GUI-thread code retrieves the QImage and converts it to a QPixmap.