For Beginners Qt
-
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.
-
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.
-
"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.
-
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?
-
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.
-
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.
-
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!