Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error c1083 QtSql
Qt 6.12 LTS is out! See what's new in the release blog

Error c1083 QtSql

Scheduled Pinned Locked Moved Solved General and Desktop
38 Posts 7 Posters 11.9k Views 3 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.
  • 1 123456789

    @jsulm
    http://prntscr.com/jxim2p

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by jsulm
    #28

    @123456789 There is no such header file, it is called Qsql, http://doc.qt.io/qt-5/qsql.html
    Edit: it is QtSql
    C/C++ is case sensitive you know

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    JonBJ 1 Reply Last reply
    0
    • jsulmJ jsulm

      @123456789 There is no such header file, it is called Qsql, http://doc.qt.io/qt-5/qsql.html
      Edit: it is QtSql
      C/C++ is case sensitive you know

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #29

      @jsulm
      Note: it's named QSql, not Qsql, which will at least matter under Linux if not Windoze....

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

        To add to @JonB: the casing on the screenshot is wrong and yes it's important. It's QtSql.

        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
        • 1 Offline
          1 Offline
          123456789
          wrote on last edited by
          #31

          http://prntscr.com/jxj4st
          http://prntscr.com/jxj53y
          http://prntscr.com/jxj5b5
          http://prntscr.com/jxj5hw

          Prince_0912P 1 Reply Last reply
          0
          • 1 Offline
            1 Offline
            123456789
            wrote on last edited by
            #32

            @SGaist
            @JonB
            @jsulm

            jsulmJ 1 Reply Last reply
            0
            • 1 123456789

              http://prntscr.com/jxj4st
              http://prntscr.com/jxj53y
              http://prntscr.com/jxj5b5
              http://prntscr.com/jxj5hw

              Prince_0912P Offline
              Prince_0912P Offline
              Prince_0912
              wrote on last edited by Prince_0912
              #33

              @123456789 Show us Screenshot of .pro file.
              i think you did not write in your .pro file.
              if not then add it as below:

              QT += sql //Case-Sensitive

              1 Reply Last reply
              0
              • 1 123456789

                @SGaist
                @JonB
                @jsulm

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #34

                @123456789 How did you install Qt?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • 1 Offline
                  1 Offline
                  123456789
                  wrote on last edited by
                  #35

                  http://prntscr.com/jxjfdv
                  @Prince_0912

                  Prince_0912P 1 Reply Last reply
                  0
                  • 1 Offline
                    1 Offline
                    123456789
                    wrote on last edited by
                    #36

                    http://prntscr.com/jxjmj6
                    http://prntscr.com/jxjmpx

                    @jsulm

                    jsulmJ 1 Reply Last reply
                    0
                    • 1 123456789

                      http://prntscr.com/jxjmj6
                      http://prntscr.com/jxjmpx

                      @jsulm

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #37

                      @123456789 After adding sql in your pro file: did you rerun qmake?
                      You should try following:

                      • Delete build directory
                      • Run qmake
                      • Build
                        Also: why did you install 2 MinGW versions?

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • 1 123456789

                        http://prntscr.com/jxjfdv
                        @Prince_0912

                        Prince_0912P Offline
                        Prince_0912P Offline
                        Prince_0912
                        wrote on last edited by Prince_0912
                        #38

                        @123456789
                        Separate the code, put in next line QT += sql in .pro file,
                        Save all,
                        Close the qt project,
                        go to project file location,
                        delete ex3.pro.user,
                        open ex3 project,
                        Choose appropriate kit when configure project,
                        rebuild the project.

                        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