Results 1 to 5 of 5

Thread: QT/C++/ BOOST questions

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2010
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QT/C++/ BOOST questions

    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

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QT/C++/ BOOST questions

    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.

  3. The following user says thank you to ChrisW67 for this useful post:

    frank100 (19th January 2011)

  4. #3
    Join Date
    Nov 2010
    Posts
    97
    Thanks
    6
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QT/C++/ BOOST questions

    Quote Originally Posted by joebats72 View Post
    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.
    This rude guy who doesn't want you to answer his questions.

    Note: An "expert" here is just someone that's posted a lot.

    "The fact of where you do the encapsulation is meaningless." - Qt Certified Developer and forum moderator

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT/C++/ BOOST questions

    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
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #5
    Join Date
    Dec 2010
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT/C++/ BOOST questions

    Thanks all very much for your response.

    Joe

Similar Threads

  1. How to build boost for MinGW?
    By pl01 in forum General Programming
    Replies: 15
    Last Post: 17th May 2011, 11:21
  2. Qt and Boost in the same C++ program?
    By TriKri in forum Qt Programming
    Replies: 12
    Last Post: 9th May 2010, 22:58
  3. Howto use Qt with Boost ?
    By bilgenratte in forum Qt Programming
    Replies: 3
    Last Post: 1st October 2009, 14:12
  4. Boost libraries
    By steg90 in forum General Programming
    Replies: 26
    Last Post: 13th June 2007, 12:50
  5. boost::assign
    By Sivert in forum General Programming
    Replies: 0
    Last Post: 2nd May 2007, 00:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.