Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Sorcery/weird thing happening including QSqlDatabase [SOLVED]
Qt 6.12 LTS is out! See what's new in the release blog

Sorcery/weird thing happening including QSqlDatabase [SOLVED]

Scheduled Pinned Locked Moved General and Desktop
qsqldatabase
3 Posts 2 Posters 1.7k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by A Former User
    #1

    I'm trying to include QSqlDatabase and I got this error: Cannot open include file: 'QSqlDatabase': No such file or directoryand I have sql in my .pro file. - How to solve this?

    ? 1 Reply Last reply
    0
    • ? A Former User

      I'm trying to include QSqlDatabase and I got this error: Cannot open include file: 'QSqlDatabase': No such file or directoryand I have sql in my .pro file. - How to solve this?

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by A Former User
      #2

      I cleaned the project and now it's working. - That is really creepy.

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

        Hi,

        No black magic here, I'd say you added the sql module to your pro file but didn't run qmake before building.

        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
        0

        • Login

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