Results 1 to 3 of 3

Thread: Hello Mysql World

  1. #1
    Join Date
    Jul 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Exclamation Hello Mysql World

    Hi,
    Im just trying to learn Qt (have known MFC) on 64bit ubuntu 9.1
    I installed Qt SDK and ran a simple tutorial in main.cpp
    The problem is that compiler says <QtSql> - no such file
    How should I fix this?

    Im not sure if my install is healthy. Earlier it complained even for <QtCanvas>.
    Also, where can i get a source tar for Qt so i could configure it and compile?

    Thanks,
    Vikas

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Hello Mysql World

    Try to add this line to your .pro file
    Qt Code:
    1. QT += sql
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Jul 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Hello Mysql World

    my .pro file already has that line.

    QT += network sql

Similar Threads

  1. Hello World app takes ages to start on WM6
    By fabiobond in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 30th July 2010, 08:03
  2. help! hello world project problem
    By Cantora in forum Newbie
    Replies: 1
    Last Post: 2nd April 2009, 04:02
  3. problem in qt hello world programme
    By u04f061 in forum Qt Programming
    Replies: 6
    Last Post: 9th March 2007, 11:39
  4. simple hello world question
    By chap19150 in forum Qt Programming
    Replies: 12
    Last Post: 11th July 2006, 19:42
  5. How can I build <<hello world>> example statically
    By krivenok in forum Qt Programming
    Replies: 4
    Last Post: 10th January 2006, 15:25

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
  •  
Qt is a trademark of The Qt Company.