Results 1 to 3 of 3

Thread: QSqlQuery: Query Problem...

  1. #1
    Join Date
    Aug 2011
    Location
    Portugal
    Posts
    34
    Thanks
    15
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QSqlQuery: Query Problem...

    Hi,

    I'm trying to interact with a MySQL DB but when I run the code I got the following:



    What's the problem I can't understand all the tutorials for MySQL interaction suggest to do this, this way or similar but the errors are the same

    Thanks!

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QSqlQuery: Query Problem...

    Try to #include <QVariant> in that file.

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

    TCB13 (28th August 2011)

  4. #3
    Join Date
    Aug 2011
    Location
    Portugal
    Posts
    34
    Thanks
    15
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QSqlQuery: Query Problem...

    Quote Originally Posted by stampede View Post
    Try to #include <QVariant> in that file.
    Hi, thanks! It works fine now

Similar Threads

  1. Replies: 1
    Last Post: 18th July 2011, 12:12
  2. QSqlQuery and non-sql query
    By zygmunt in forum Qt Programming
    Replies: 6
    Last Post: 19th January 2011, 18:44
  3. Sql Query Problem
    By MrShahi in forum Qt Programming
    Replies: 6
    Last Post: 30th May 2008, 09:16
  4. Complex query in QSqlQuery
    By xgoan in forum Qt Programming
    Replies: 20
    Last Post: 17th March 2008, 12:04

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.