Anonymous Penguin
Anonymous Penguin

Reputation: 2137

Does QT use managed code?

I have been looking at QT and seeing how ideal it would to code with: code once, deploy everywhere, and even some drag and drop. (Scratch, only for grown ups :D) Anyway, is it managed, unmanaged, or C++/CLI for a standard QT form? I am used to native/unmanaged C++ code, and MSVC C++ made everything more complex than it really needed to be, and I could only deploy to one platform. However, being a oldschool C++ only coder, I decided that I would be against using QT if I had to learn managed code too. I realize that I might have to learn managed someday, but for now if I can avoid it it will save me lots of time.

Upvotes: 0

Views: 1351

Answers (2)

Alexis Wilke
Alexis Wilke

Reputation: 20741

"managed" as you mean it, no Qt is not managed (no CLI or CLR or whatnot). Qt is just C++.

However, it does manage objects like smart pointers and that may bite you at first. When you create a window and place widgets in there, the widgets become children of the window and when you delete the window, Qt automatically deletes the widgets for you.

This is very similar to having smart pointers, although Qt does not use such for that specific case. Widgets are, in effect, smart pointers in themselves.

Upvotes: 1

4pie0
4pie0

Reputation: 29724

Qt is a cross-platform application and UI framework for developers using C++ or QML, a CSS & JavaScript like language. Qt Creator is the supporting Qt IDE.

You use common C++ syntax to code for Qt + you make a use of course of Qt classes, Qt macros and Qt meta-call mechanism, but still this is just C++. Qt doesn't depend on C++/CLI or other proprietary frameworks.

Upvotes: 6

Related Questions