Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. For Beginners Qt
QtWS25 Last Chance

For Beginners Qt

Scheduled Pinned Locked Moved Game Development
17 Posts 3 Posters 8.1k Views
  • 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.
  • D Offline
    D Offline
    diffie
    wrote on last edited by
    #7

    thanks a lot sierdzio. im not asking anyone here to do that but you're right! that's the man that i should be. from zero to hero hahah. i've got only 5 months to do my project coz its my last requirement for college...

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #8

      That's more than enough :) I'm developing a proof-of-concept game in QML right now myself. I am developing in Qt for like 4 years now, but knew not a single thing about QML - so I figured out a complicated big project of that kind would be great for learning purposes. And it indeed is.

      After a few days work I had some base actions working. After 2 weeks - a substantial part of the UI was done. QML is really great in use and extremely easy to learn - remember I had no prior experience in it. And, Qt's documentation is very good, too.

      So, my advice is: since you've got the concept ready, start hacking right away! No better way to gain experience than doing a real project. It may be tough at the beginning, but with help of docs it will get better. And don't be afraid if it turns out you did something "wrong" - you can always refactor. It will take time, sure, but you'll also be better prepared in the future. And any time you stumble upon a show-stopper problem - ask here, the forum is very active and usually people are happy to answer in detail. I've already noticed you doubled the question and Gerolf did provide some additional info on QML for you there.

      (Z(:^

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #9

        I forgot to link this earlier, might help you (I have not read it, but a quick glance leaves a good feeling about the contents), especially in the beginning: "LINK":http://quitcoding.com/download/Qt_Quick_Game_Programming_1_0.pdf.

        (Z(:^

        1 Reply Last reply
        0
        • D Offline
          D Offline
          diffie
          wrote on last edited by
          #10

          Thanks for the help Sir! That's encouraging. I am always after learning new things. In fact my I am also planning to use QML instead of the other PL in the Qt Creator because many are saying that it is easy to learn.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            diffie
            wrote on last edited by
            #11

            Sir where can i find QPainter? Is it another program that need to install?
            Thanks in advance for your response!!!

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #12

              "QPainter":http://developer.qt.nokia.com/doc/qt-4.7/qpainter.html is part of Qt framework (QtGui module), no need to install anything. In most applications, you don't even need to explicitly include <QtGui/QPainter>, because you are very likely to have it included by other components (almost everything is rendered through QPainter in Qt. Well, that statement is not really true, but it's a nice lie that will help you get onwards ;) ).

              QPainter is the base rendering class in Qt, widgets, graphic framework objects etc. are being drawn using QPainter. Mind you, it won't be as easy to use as QML or graphic view framework, as it is a low-level part of Qt API.

              (Z(:^

              1 Reply Last reply
              0
              • D Offline
                D Offline
                diffie
                wrote on last edited by
                #13

                Thanks a lot sir! So this QPainter is the one used for drawings. As of now I am creating image using adobe photoshop. I'm about to import these images to Qt and use them as buttons and game screen. But I'm wondering if what I'm doing is necessary. Should I use QPainter instead of Adobe Photoshop?

                1 Reply Last reply
                0
                • sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #14

                  No.

                  QPainter is a C++ class of Qt. It's not being used to "draw" as in drawing in Photoshop, it draws things on screen. See the documentation link I've sent you in my last post.

                  You can continue using AP to prepare your button's visuals. You will then just use them in (for example) QML as basis for your button (QML Image element). It can also be done using QtWidgets and QPainter, but will require more coding.

                  (Z(:^

                  1 Reply Last reply
                  0
                  • sierdzioS Offline
                    sierdzioS Offline
                    sierdzio
                    Moderators
                    wrote on last edited by
                    #15

                    BTW. I'm perfectly fine with being called "mate", no need for this "sir" thing ;) Terry Pratchett, for example, is a Sir, he was knighted a decade ago. I'm not.

                    It's up to you, anyway.

                    (Z(:^

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      diffie
                      wrote on last edited by
                      #16

                      No problem "mate" :) I just use the "sir" to show politeness and respect to anybody. thanks again for your response.!!!

                      1 Reply Last reply
                      0
                      • sierdzioS Offline
                        sierdzioS Offline
                        sierdzio
                        Moderators
                        wrote on last edited by
                        #17

                        Yeah, I did suspect that was the case, no problem there, it just seemed a bit awkward to me to be addressed that way ;)

                        Cheers and good luck!

                        (Z(:^

                        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