Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. HELLO GRAPHICS

HELLO GRAPHICS

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    boukhaliboukhali
    wrote on last edited by
    #1

    hello.
    First I apologize for my english.
    I am working now with Qt ,but I am not very good in programtion,but I am learning and practicing
    inorther to built a project I am hopping for.
    I have built a MainWindow,with many tabWidgets my idee is to have a graphicsScene in every
    tabWidget,but it's not working I have create a QWidget for everyone,but and when I add the
    widgets the graphicsScene dont work,..
    the probleme is with the QWidget constructor,..
    the probleme is with the addTab QTabWidegt function,..
    Perhaps,so haw can I do to insert many graphicsScene with differents contents,in the MainWindow ,because I want the MenuBarre ,..
    Thanks.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      In your case - completely new to Qt and not much experience in programming in general - I strongly recommend starting with some simple examples from the various tutorials and getting started documents.

      Some links follow to give you a start:

      • "How to learn Qt":http://doc.qt.nokia.com/4.7/how-to-learn-qt.html
      • "Getting Started Programming with Qt":http://doc.qt.nokia.com/4.7/gettingstartedqt.html (translations in the "wiki":http://developer.qt.nokia.com/wiki/Category:Learning::GettingStarted)
      • "Tutorials overview":http://doc.qt.nokia.com/4.7/tutorials.html

      Qt itself comes with a large set of examples and demo applications. You can learn much if you study these - they are provided for this purpose!

      Doing things in the right order is crucial in IT and programmin world. So, the more you feel comfortable, you can extend your application and add all the desired features.

      In your case:

      • Learn all the basic stuff from the tutorials mentioned before
      • Make a reduced main window work, learn how to deal with menu bars, tool bars and all that stuff
      • Then add one QGraphicsScene, make that work
      • Then add the tabs

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • B Offline
        B Offline
        boukhaliboukhali
        wrote on last edited by
        #3

        Thanks .
        but that's what I am doing since sometimes,but there is not much simple examples with QGraphicsScene,and the ones here
        gives few informations or complexe informations,for me...
        I know that nowbody can teach me all I have to know about it
        but ,I hope having a useful simple example using a QMainWindow
        wich have a QTabWidget inside with tow or tree tabs displaying
        a QGraphicsScene everyone...
        It's not you ,but I hope somebody,could give me I small exemple like that, if he have I time...
        Thanks,for for your reply.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          QGraphicsView and its associated classes are a complex beast on its own. I'd really suggest you make a simple graphics view work correctly. Adding this class to a tab widget is not that hard afterwards.

          You could try the tab widget stuff with a simple widget inside (say a QTextEdit) to get comfortable with its API.

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • B Offline
            B Offline
            boukhaliboukhali
            wrote on last edited by
            #5

            Thanks you
            that's wat I have done ,and declare the graphicsscene in the
            graphicsview constructor it is working very good.
            I have done my smalls animations, Thanks , ..
            I have found what I was searching for, ..
            Simple widget for me ,could'int hold Objects that properties
            can be changed as a QGraphicsObject, that's wy the
            graphicsscene is needed , but with I simple code I can have what I wanted , thanks.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved