PDA

View Full Version : QT/C++/ BOOST questions



joebats72
17th January 2011, 00:41
Hi, I’m fairly new to c++/QT and I have some questions:

1. Can BOOST libraries be integrated with QT?
2. Can the STL and standard c++ libraries be integrated with QT ?

Thanks,
Joe

ChrisW67
17th January 2011, 00:48
1. Yes
2. Yes

C++ does not suddenly start behaving differently just because you are using the Qt libraries. There are a few things you might need to do slightly differently to avoid name collisions with the pseudo-keywords emit, signals, and slots: see the bottom of the "Signals and Slots" pages in Assistant.

nroberts
17th January 2011, 19:34
Hi, I’m fairly new to c++/QT and I have some questions:

1. Can BOOST libraries be integrated with QT?

Yes, with one exception. The boost::signals library conflicts with Qt keywords. There's some funny stuff you can do to make them play well together...or you can just use signals2 instead, which has no such problem and is MT safe.

As to the standard lib...you might have to convert your datatypes from time to time because Qt reinvented a lot of those wheels and of course uses its own versions in its interfaces.

wysota
17th January 2011, 20:04
In this article (especially at the end) you'll find some of the differences between Tulip and STL explained:
http://doc.trolltech.com/qq/qq19-containers.html

joebats72
17th January 2011, 22:49
Thanks all very much for your response.

Joe