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. Accessing SQl Database in Qt with Table View
QtWS25 Last Chance

Accessing SQl Database in Qt with Table View

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 265 Views
  • 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.
  • Swati777999S Offline
    Swati777999S Offline
    Swati777999
    wrote on last edited by
    #1

    Hi All,

    I was trying this sample program TableEditor ; Table Editor . I am not clear about the first line of the .pro files. Do we have to include the absolute path of the SQL Database in the HEADERS of the .pro file?

    “ In order to be irreplaceable, one must always be different” – Coco Chanel

    JonBJ 1 Reply Last reply
    0
    • Swati777999S Swati777999

      Hi All,

      I was trying this sample program TableEditor ; Table Editor . I am not clear about the first line of the .pro files. Do we have to include the absolute path of the SQL Database in the HEADERS of the .pro file?

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

      @Swati777999
      Don't know what you mean. That .pro does not have any "path of the SQL Database in the HEADERS of the .pro file".

      You should not be using examples from Qt 4.8, nor should be using anything from https://het.as.utexas.edu/....

      If you really wanted to use this start from https://doc.qt.io/archives/qt-5.6/qtsql-cachedtable-cachedtable-pro.html. However as you can see that is archived as of Qt 5.6, so whatever it is you should be looking at something else. (EDIT See @VRonin's reponse below, he obviously found it elsewhere! Still remains the fact that you don't want to be using Qt 4 references!)

      VRoninV 1 Reply Last reply
      1
      • JonBJ JonB

        @Swati777999
        Don't know what you mean. That .pro does not have any "path of the SQL Database in the HEADERS of the .pro file".

        You should not be using examples from Qt 4.8, nor should be using anything from https://het.as.utexas.edu/....

        If you really wanted to use this start from https://doc.qt.io/archives/qt-5.6/qtsql-cachedtable-cachedtable-pro.html. However as you can see that is archived as of Qt 5.6, so whatever it is you should be looking at something else. (EDIT See @VRonin's reponse below, he obviously found it elsewhere! Still remains the fact that you don't want to be using Qt 4 references!)

        VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

        @JonB said in Accessing SQl Database in Qt with Table View:

        However as you can see that is archived as of Qt 5.6, so whatever it is you should be looking at something else.

        Still alive AFAIK:

        • Qt5 https://doc.qt.io/qt-5/qtsql-cachedtable-example.html
        • Qt 6 https://doc.qt.io/qt-6/qtsql-cachedtable-example.html

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        2

        • Login

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