Results 1 to 4 of 4

Thread: Advice and Widgets To Use

  1. #1
    Join Date
    Mar 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Question Advice and Widgets To Use

    Hello Everyone,

    I came across this website via a Google search, and it seems like a great resource to learn! I am brand new to QT and need to implement a graphical Mancala game. If you are unfamiliar with this game, you can see this flash version: http://www.novelgames.com/flashgames/game.php?id=204

    I noticed that QT has several widgets. My idea is to use the "Push Button" widget to use to represent each player rows. Each button instance will print somehow the amount of balls that are currently in the location. Is that a suitable widget to use, or something else preferred?

    Since (my idea) there are 12 buttons (6 for player 1 and 6 for player 2) is there a way to tie all these buttons together such as a link list or even an array? I thought I would ask because even though the QT documentation seems very good I am bit overwhelmed with the amount of content to read.

    Anyways, those are my initial ideas, and I would appreciate any advice given.

    Thanks for your time.

  2. #2
    Join Date
    Feb 2010
    Posts
    96
    Thanks
    4
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Advice and Widgets To Use

    I think you are going about the idea way to simplistic. If I where designing the game I would use GraphicsScene and GraphicsView. Each stone could be a GraphicsItem.

    I think you would be allowed a lot more in the realm of effects with that setup then if you tried to make a simplistic game that used a button. You could just setup a tool tip for the little pocket that holds the stones. It's much more fluid than using a button.

  3. #3
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Advice and Widgets To Use

    I back for the graphics view use.
    You can have a look at the asteroid demo in Qt Demos under graphics View...

  4. #4
    Join Date
    Mar 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Advice and Widgets To Use

    Thanks a lot. I will take a look at this and see what I can do.

Similar Threads

  1. Basic Advice
    By Ferric in forum Newbie
    Replies: 1
    Last Post: 18th December 2009, 08:52
  2. Replies: 0
    Last Post: 15th May 2009, 15:38
  3. Need Advice: Best IDE for Mac OSX
    By JimDaniel in forum Qt Programming
    Replies: 6
    Last Post: 18th October 2008, 23:14
  4. Advice for a new Project
    By hardgeus in forum Qt Programming
    Replies: 3
    Last Post: 18th April 2008, 08:01
  5. Newbie needs advice
    By Seth in forum Newbie
    Replies: 3
    Last Post: 12th April 2007, 22:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.