Results 1 to 2 of 2

Thread: Question about mix Qt with other C++ codes

  1. #1
    Join Date
    Nov 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Smile Question about mix Qt with other C++ codes

    Dear all,

    I am still new to Qt, now I have a silly question to ask everybody.

    I'm currently coding using mainly Boost library, however, I want to add a GUI interface for my program in the near future. I'm using data structures such as Boost.Circular Buffer, STL vector, and etc...

    My questions are:
    Can I compile plain C++ codes mixed with Qt codes, using e.g. GCC? In other words, can I mix these codes together? What steps should I take when writing such a program?

    Your advice will be highly appreciated. Thanks in advance for helping a newbie like me!

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Question about mix Qt with other C++ codes

    In general, there's no problem mixing several libraries.

    However, keep in mind that library A might define a symbol that library B defines too. That will not work. I think an example of this is that Boost also defines signals and slots. I think in this case you need to use CONFIG += no_keywords in your .pro file.

Similar Threads

  1. Error codes in QtXml
    By suneel1310 in forum Qt Programming
    Replies: 0
    Last Post: 7th September 2010, 08:39
  2. Replies: 0
    Last Post: 6th August 2010, 11:01
  3. I need greenPhone keyboard codes
    By hgedek in forum Qt for Embedded and Mobile
    Replies: 6
    Last Post: 21st September 2007, 11:00
  4. QR codes
    By jcr in forum General Programming
    Replies: 0
    Last Post: 16th May 2006, 05:02
  5. Key codes
    By impeteperry in forum Qt Programming
    Replies: 4
    Last Post: 28th April 2006, 18:35

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.