Datatype to use for collection of QT buttons

Posted by different on Stack Overflow See other posts from Stack Overflow or by different
Published on 2010-03-25T16:46:07Z Indexed on 2010/03/25 16:53 UTC
Read the original article Hit count: 414

Filed under:
|
|
|

Hi Everyone,

I am brand new to QT and need to develop the Mancala game. Since I'm brand new to the QT environment, my plan it to keep things very simple. I will be using the "Push Button" widget as pieces on the game. Since two players play this game, my idea is to have to arrays of buttons. One array for player 1 and the other for player 2. My question is since I am using "Push Button" widgets, how can I group them to iterate through? I notice that QT has both the array and vector data types but I'm confused on how these data types can be used to "group" the buttons. Does anyone know of any sample code or tutorials to look at to learn more?

Thanks for your time and any input provided.

© Stack Overflow or respective owner

Related posts about qt

Related posts about push