Results 1 to 4 of 4

Thread: SQL integration in Qt

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2021
    Posts
    6
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Smile SQL integration in Qt

    Hi All,

    Hope you're doing well!

    I am a newbie in Qt, started learning it a few months ago. I am wondering if it is possible to display the result of SQLite in the tabular form as the central widget of the mainWindow. If so, how can it be done, and what are the loopholes of this process?

    Any help will be appreciated!

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    503
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: SQL integration in Qt

    Hi, here are a bunch of examples using Qt and SQL databases: https://doc.qt.io/qt-5/examples-sql.html.

    If you are stuck with a specific problem please post some relevant code.

    Ginsengelf

  3. The following user says thank you to Ginsengelf for this useful post:

    swati777999 (19th November 2021)

  4. #3
    Join Date
    Jul 2021
    Posts
    6
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: SQL integration in Qt

    Quote Originally Posted by Ginsengelf View Post
    Hi, here are a bunch of examples using Qt and SQL databases: https://doc.qt.io/qt-5/examples-sql.html.

    If you are stuck with a specific problem please post some relevant code.

    Ginsengelf
    Quote Originally Posted by Ginsengelf View Post
    Hi, here are a bunch of examples using Qt and SQL databases: https://doc.qt.io/qt-5/examples-sql.html.

    If you are stuck with a specific problem please post some relevant code.

    Ginsengelf
    Hi Ginsengelf,

    Thanks for the suggestion. Yes, I have tried some of these examples before, but I am unable to get any output on my screen. For example; I tried the first example :
    https://doc.qt.io/qt-5/qtsql-books-example.html

    I couldn't find any output on my screen and my application output flashed this message:
    The process failed to start. Either the invoked program "D:file_name.exe" is missing, or you may have insufficient permissions to invoke the program.

    I have not deleted any file from that folder in the location. What does this error indicate? Can you suggest ways to make it work?

    Thanks in advance!


    Added after 1 17 minutes:


    Hi Ginsengelf,

    From the examples in your post https://doc.qt.io/qt-5/examples-sql.html., I found that only .cpp and .pro files are given.For example, check the below one.

    https://doc.qt.io/qt-5/qtsql-tablemodel-example.html

    Is it by default expected for us to complete the remaining files for its design?

    Thanks in advance!
    Last edited by swati777999; 19th November 2021 at 04:00.

  5. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    12
    Thanks
    1
    Platforms
    Unix/X11

    Default Re: SQL integration in Qt

    The tablemodel example is part of other examples using common files. You should check the parent directory for file connection.h or checkout the whole qtbase project. Also learn how Qt projects are organized.

Similar Threads

  1. QT + MFC ( integration is possible ? )
    By andre_teprom in forum Newbie
    Replies: 2
    Last Post: 1st September 2011, 03:05
  2. qml qnd c++ integration
    By katta_ashish in forum Qt Quick
    Replies: 1
    Last Post: 1st June 2011, 10:34
  3. Eclipse Integration sans Integration
    By ChrisW67 in forum Qt Tools
    Replies: 3
    Last Post: 17th March 2009, 08:29
  4. VS.NET integration
    By invictus in forum Installation and Deployment
    Replies: 1
    Last Post: 15th May 2008, 07:49
  5. Qt Integration
    By ToddAtWSU in forum Newbie
    Replies: 4
    Last Post: 23rd January 2006, 18:54

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.