Registered Member
|
Hello everyone,
new to Marble and even Qt I try to extend GeoPainter to draw pixmaps rotated around and placed at an anchor point. The function works flawless with a pure QtWidget, but added to GeoPainter just 2 or 3 pixmaps are drawn for the rest I get black rectangles. To test I arranged 10 objects in a circle, I can pan the map around to move objects out of the viewport but never get more than 3 painted correctly. Here is the code:
When I comment out .rotateRadians(angle) all objects get painted. Anyone knows what the problem is and how to fix it? Best regards Michael |
Registered Member
|
Found the issue, coding above is correct. The problem was some time ago I derived MarbleWidget from QOpenGLWidget. Everything seemed to work. Now after I switched back to QWidget all rotated pixmaps get drawn. I need to check the OpenGL initialization.
Thanks for your time! Regards Michael |
Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]