Results 1 to 9 of 9

Thread: Accessing xampp mysql database

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Accessing xampp mysql database

    create QSqlTableModel model; on a heap.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  2. #2
    Join Date
    Feb 2009
    Location
    Nuremberg, Germany
    Posts
    13
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Accessing xampp mysql database

    Quote Originally Posted by spirit View Post
    create QSqlTableModel model; on a heap.


    Did you read the two posts above? I think no you didn't.
    For this example it makes no difference if the model is on heap or stack.

  3. #3
    Join Date
    Feb 2009
    Location
    Nuremberg, Germany
    Posts
    13
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Accessing xampp mysql database

    Does anyone has experience setting up a mysql connection with Qt4.5 ?

  4. #4
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Accessing xampp mysql database

    yup, works fine for me.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  5. #5
    Join Date
    Feb 2009
    Location
    Nuremberg, Germany
    Posts
    13
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Accessing xampp mysql database

    Ok, it would be nice if you could explain what is the difference between installing mysql on a windows machine to the previous Qt version, if there is any.
    I did it like described in this article
    http://wiki.qtcentre.org/index.php?t...ws_using_MinGW
    but it does not work for Qt4.5

    Thx so far

  6. #6
    Join Date
    Feb 2009
    Location
    Nuremberg, Germany
    Posts
    13
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Accessing xampp mysql database

    wimblows, so i'm back on my lamp now...
    works fine so far, and when i've time i'll maybe look into it, making the app work for win

Similar Threads

  1. Putting and getting images from MySQL database?
    By allensr in forum Qt Programming
    Replies: 2
    Last Post: 13th May 2007, 21:47
  2. Qt and MySQL Database Connection
    By shamik in forum Qt Programming
    Replies: 41
    Last Post: 6th October 2006, 12:48
  3. Replies: 7
    Last Post: 12th August 2006, 15:11
  4. Issues regarding QMySql drivers and mysql database
    By bera82 in forum Qt Programming
    Replies: 2
    Last Post: 10th August 2006, 17:50
  5. Replies: 8
    Last Post: 7th March 2006, 13:40

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.