Using QtSql in an open source project

  • Hi!
    I am quite new to open source development and am trying to use QT's MySQL interfaces in an already existing project. The project uses QT 4.8.6 and was built using cmake . I simply want to make a form in that project that displays data from a MySQL database on my system. The problem is that I'm not sure how to proceed using cmake instead of qmake because no ".pro" file will be generated to add "QT += sql". Any idea how I would proceed simple by using make? The CMakeLists.txt was made by the original developer.

  • Lifetime Qt Champion


    You can find how to it here in cmake's documentation

Log in to reply

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