user interface - how to render a map defined by a matrix of cells using QT Gui? -


I have a map using QT that is defined by a matrix of cells in the observation mode (the GPS map looks like ). I want to be able to zoom it and each cell is defined by its color and some properties (bitmap to put on the cell). In order to be able to move the map in the direction of mapping (using the directional arrows) I also need a GPS.

Right now, I'm thinking of drawing a matrix of QImages on my screen, and load each of them with information about all the cells I need, but it's a lot Do not feel like a good solution

Thank you for every chance you provide.

Your initial idea is justified, but all QImages and you have a custom < Insert the information in Code> QGraphicsItem and put them in a QGraphicsScene (and correct their position) - so you only need QGraphicsView to visualize everything In this way you get BSP painting and selection optimization, see the changes, and keep free animations (if necessary!) Free of charge.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -