Results 1 to 3 of 3

Thread: The best approach to program an interactive graphical application?

  1. #1
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    387
    Thanks
    101
    Thanked 15 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default The best approach to program an interactive graphical application?

    Hello there!

    I'm about to start a new Qt project. The task is to develop a little interactive 2D simulation of a walking stick figure and I'm wondering what's the best approach to use.

    The stick figure is only a head with two legs and it's controled by providing sequences of joint angles for the hips. From the given joint angles plus a very simple physics engine a pose of the stick figure is calculated and rendered on the screen. Additionally it should be possible to give the stick figure a little push with the mouse.

    Which way should I go? Should I use the standard painting methods that Qt provides together with QTtransform? Or is the Graphics View Framework a better choice? Or should I try to use SVG or even OpenGL?

    Thanks,
    Cruz

  2. #2
    Join Date
    May 2008
    Posts
    61
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The best approach to program an interactive graphical application?

    Are you going to have some interaction with the mouse and perform some operations on the figure or are you intending to just draw the figure using some inputs from some text boxes?
    If you only want to draw the result to the screen, you can choose either choice.
    My choice would be the Graphics View Framework and you can develop the above easily. Also it would be easier for you to extend your requirements if you want to.
    You can check the elastic nodes example to see the Graphics View Framework in action.
    If you give some detailed information, we can provide a better answer.

    alisami

  3. #3
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: The best approach to program an interactive graphical application?

    at animation frameworks comes with a ready made example of stick man

Similar Threads

  1. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 04:19

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.