Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using QtSql in an open source project
Forum Updated to NodeBB v4.3 + New Features

Using QtSql in an open source project

Scheduled Pinned Locked Moved General and Desktop
sqlqt4.8.6
2 Posts 2 Posters 1.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SidRama
    wrote on last edited by
    #1

    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.
    Thanks!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved