PDA

View Full Version : Help with Board Game!



drake1983
7th July 2007, 05:01
Well, I need to make a card game like FreeCell, Solitaire or Poker, using C++ and Qt4.
I have made the class design and some implementations, but I don't know which QT4 component should I use to do the board with the cards inside?
The cards will be pictures , and the user can select some of them.

Thanks!!!

jpn
7th July 2007, 07:49
One option could be to use the graphics view framework (http://doc.trolltech.com/4.3/graphicsview.html).

Brandybuck
7th July 2007, 19:00
Definitely QGraphicsView! It has selection, scaling, scrolling, animation, drag-n-drop, etc. The only minor "drawback" is that graphic items are not QObjects (to keep them lightweight), so you can't make connections to them.

drake1983
8th July 2007, 03:22
Thanks to everybody for the answers!!! I will take a look to the QGraphicsView framework, it seems to be very powerful.