Menu

Compile and use with Qt 5.7

Help
2016-09-23
2016-09-29
  • Levi Armstrong

    Levi Armstrong - 2016-09-23

    Hello Everyone,

    I have been searching for a way to use python within my C++ Qt Creator plugin and I feel this library meets that requirement. I would like to compile and use it with Qt 5.7, but I am looking for guidance on what I must do to accomplish this task and verify that everything is working properly.

    I assume that the CMakeList.txt file must be updated with qt5 wrappers but not sure what else needs to be done. So any help is appreciated.

     
  • Florian Link

    Florian Link - 2016-09-23

    The default build system of PythonQt is qmake.
    But it is probably not difficult to upgrade the cmake files from the Qt 4 release of PythonQt.
    I just removed them from trunk because they were unmaintained.

     
  • Levi Armstrong

    Levi Armstrong - 2016-09-28

    Florian, Thank you for the quick response. I will use qmake for the build. Is there anything special that I need to do to use this library within a Qt 5.7 application? I noticed in the code there directories call generated_cpp_54 and not being familure with how the library works I am not sure if I need to generate something for 5.7.

     
  • Florian Link

    Florian Link - 2016-09-29

    No, since Qt 5 is binary compatible, it normally works to build a newer version with older wrappers. The newest wrappers in svn are for Qt 5.6

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.