Using Qt in Visual Studio 2013 Console Application



  • I have a Visual Studio 2013 Console Application that works with OpenCV 2.4.9. I am trying to get Qt running in this environment. I do not want to use a QtProject within Visual Studio.

    I have linked to Qt in VS, but at runtime I get the error: OpenCV Error: The function/feature is not implemented (The library is compiled without QT support) in cv::fontQt...

    I've seen a lot of posts about building OpenCV with Qt using Cmake. What is really important to me is using Qt in a console app. Is this even possible? If so, I would greatly appreciate some help!

    Thanks!


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Sure, you can use e.g. the Qt core module.



  • Ok, thanks. Do I accomplish this through normal linking within Visual Studio? Does the core module still allow for GUI windows, or can this only be done in a non-console application? Thanks for your time!

    EDIT:
    Hmm, it looks like the core module doesn't support GUI functionality. Is there a way to use QtGUI in a console app?


  • Lifetime Qt Champion

    That's a bit of a strange question, you want GUI within a console application ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.