tags:

views:

196

answers:

6

I have just arrived at new company and have never worked with Qt before, but my task is to learn Qt in 2 weeks, so i can give training to others. So i got 2 weeks to learn Qt and prepare for 2 weeks long Qt teaching. I am so dead! Please point out some common mistakes, tricks, styles so i can make that training a bit better!

Thank you!

+1  A: 

Hi.

  1. Book
  2. Examples and Demos Launcher

Doing all advises from that links, will gave you the right direction to move.

PS: I think 2 weeks not the problem to start using Qt...

mosg
+1  A: 

http://doc.trolltech.com/4.3/tutorial.html is the well known QT tutorial found in the web. You can also try this book http://www.amazon.com/Programming-Prentice-Source-Software-Development/dp/0132354160.

1s2a3n4j5e6e7v
+1  A: 

At first you should understand the signal/slots concept, because that is used heavily in Qt. Then I would work through some simple examples, there are lots of them, so just pick the ones you like. If you use Qt Creator you have the context sensitive documentation always at hand, which helps a lot.

If you think you know the basics you can concentrate on the more complicated things like threading or network communication, depending on what your company focus is.

Remember the Qt is not only the GUI framework, but has a framework for a lot of lowlevel components, too. Have a look here to get an overview.

gre
signals/slots - done!One question - when i connect on signal to another and second signal to slot and triger first signal - who will be sender(), when slot receives signal?
0xDEAD BEEF
Not sure. I'd say it has to be the original sender, because the 2nd sender only serves as "proxy" and is not actually emitting the signal. Have a look at qDebug(), it can print almost anything on stdout so you can compare pointers in this case if you want to be sure.
gre
+3  A: 

Get C++ GUI Programming with Qt 4, (the official Qt book) and start reading!

scomar
+1  A: 

If you already know C++, start developing Qt applications using Qt. You can use the examples, Qt- Assistant and also Qt classes for 4.6 site. IMHO, only by practicing you can learn Qt nicely. Read the books and links specified in the answers and start creating applications. Start with the simple one and move forward towards the complex. 2 weeks is quite enough time to learn Qt.

liaK
A: 

If learning by yourself in teaching doesn't cut it (quite ambitious if it is supposed to be more than first steps and an overview), you could attend a Qt training, offered by Nokia/Qt partners such as KDAB and ICS.

Frank