KroMagna
25th February 2011, 20:11
Hi,
I try to create widget which will represent checkers board. Widget should be resizable so all images(checkers, board) will be in svg format.
Which way to implement that is proper:
1. Inherits QGraphicsView. Set board, and checkers as QGraphicsSvgItems. Use fitInView to show the whole board.
2. Inherits QSvgWidget. Load board... and how can I place checkers on my board?
3. Inherits QWidget and try to paint on it(I don't know how already).
Are there another solutions?
I try to create widget which will represent checkers board. Widget should be resizable so all images(checkers, board) will be in svg format.
Which way to implement that is proper:
1. Inherits QGraphicsView. Set board, and checkers as QGraphicsSvgItems. Use fitInView to show the whole board.
2. Inherits QSvgWidget. Load board... and how can I place checkers on my board?
3. Inherits QWidget and try to paint on it(I don't know how already).
Are there another solutions?