PDA

View Full Version : QT related interview questions



gulhk
5th February 2011, 08:38
Hello everyone!

Could anyone please guide me what type of QT related questions are asked in interviews. Any book that I should have a look at? or any questions that I must find answers for.

I'd be grateful.

Thanks

mpalomas
5th February 2011, 09:52
Hi,

Ok well this is not an easy question, I will try to point you to Qt key concepts, but Qt is a quite large framework, covering several domains, not only GUI, so it really depends on the job description.

First of all, a good start is this page : http://doc.qt.nokia.com/4.7/qt-basic-concepts.html

According to me, it is necessary to know very well the Qt object model, and object ownership, since it is related to memory management, to avoid memory leaks or double delete issues you have to understand how it works. Questions on this topic can be about object liftetime, when will it be destroyed ...

Then you need to know how signal-slot works, meaning what is moc, what it generates, how to include the moc generated code.

Another big thing is the events and event loop concepts, in Qt you can hack the event loop of the application, and process any event, or discard them, you can also do that on a specific object only, or use protected function to customize the behavior of an object for a specific event. To sum-up they are several ways to process events, and depending on your goals/requirements you must be able to choose the right way.

After that, I would say it depends on the job : are you doing mainly GUI, networking , database access, XML processing ?

About GUI, the Model/View concept used in Qt is huge, amazingly powerful, but to be honest, a bit tough to understand when you are a beginner. It's about QAsbractitemModel, QAbstractItemView, and their subclasses, documentation has improved a lot the past years.
To draw on a canvas, you have to look at the GraphicsView framework, and understand the concepts of scene, view of the scene, coordinates systems ...

I could continue with networking, or XML, but Qt is so huge.

Maybe other important stuffs to understand are objects that are implicitly shared, and copy on write concept. Do you know the difference between a reentrant and a thread safe function ?

To finish, you might have questions on design patterns used in Qt, internally or publicly, like MVC, private implementation, listener/observer ...

Hope that helps a bit.

gulhk
5th February 2011, 11:58
mpalomas Thank you soooo much for such a detailed reply :). That has definitely helped A LOT because it has narrowed down the topics for me to look for :).

Thanks a ton :)

nish
5th February 2011, 18:33
did you already saw these? http://www.qtcentre.org/group.php?do=discuss&discussionid=1

gulhk
6th February 2011, 10:38
THANK YOU SO MUCH NISH. That's exactly what I needed :). Thanks a TON :)

sonulohani
22nd February 2013, 07:57
1) How qt differs from other mobile development platforms like android?

2) If worked with GTK what is the difference between QT and GTK?

3) What are the striking futures of QT?

4) What is Qpointer?

5) What is dpointer?

6) What is MVC architecture? How it is organized?

7) What is a signal? And how will it differ from event?

8) What is a slot? And how it differs with callback Method?

9) What is the difference between signal and slot mechanism and Callback mechanism of GTK?

10) How many signals at maximum you can connect to a single slot? If more than one how you can do that?

11) How many slots can you connect to a signal? If more than one how those slots will be executed?
(The order of execution)

12) What is QCast and how will it differ compared to c++’s dynamic cast?

13) What is the use of Q_OBJECT macro?

14) What is MOC and UIC? Explain how they will work for compilation in QT?

15) What is qmake? (Explain the usage of it)

16) How a QT Program/Application written for one platform (Symbian) can be ported/executed in another
platform (Maemo)? (Explain If you need to make any changes or you need to recompile)

17) What are all the platforms/OS currently QT supports?

Billurelly
8th October 2013, 08:32
It has narrowed down the topics for me to look for.

lyesqiz
7th October 2015, 11:00
1. How does QT differ in relation to GTK
2. Tell me everything you know about QT