PDA

View Full Version : Widget for tiled map editor



vladkomarr
1st December 2014, 23:41
Hello, i have a simple question.
I need to make a tiled map editor for my platformer game, so I started learning QT.
I have following questions:

What widget i am supposed to used to create a simple MxN pixels field? QGraphicsScene or QGraphicsView?
How can I put a tile on scene so that it crearly fits it's 32x32 cell?

Maybe anyone can share experience doing something like that?
Thanks for answers, i am new to this.

wysota
2nd December 2014, 06:20
What widget i am supposed to used to create a simple MxN pixels field? QGraphicsScene or QGraphicsView?
QGraphicsScene is not a widget. You will need both QGraphicsView and QGraphicsScene as the latter acts as a model for the former.

How can I put a tile on scene so that it crearly fits it's 32x32 cell?
Make it have a size of 32x32.

vladkomarr
2nd December 2014, 16:23
Thanks for reply.