Results 1 to 20 of 34

Thread: EditStrategy, how to save data

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2007
    Location
    Groningen Netherlands
    Posts
    182
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    16
    Thanked 2 Times in 1 Post

    Default Re: EditStrategy, how to save data

    Quote Originally Posted by jacek View Post
    This actually executes the query twice.
    Ah thanks.

    Quote Originally Posted by jacek View Post
    What does qDebug() << query.lastError() output? What does db.isOpen() and db.isValid() return? Do you get any errors if you issue an invalid query? Do you start any transactions?
    I'm gonna investigate.
    Oddity I noticed is that I can edit data with phpmyadmin, but the Mysql Query Browser has al edit options greyed out if I right click on a cell.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: EditStrategy, how to save data

    Quote Originally Posted by JeanC View Post
    but the Mysql Query Browser has al edit options greyed out if I right click on a cell.
    Then maybe you don't have rights to modify the database?

Similar Threads

  1. QSqlQueryModel data update
    By psi in forum Qt Programming
    Replies: 4
    Last Post: 20th July 2012, 04:59
  2. Replies: 4
    Last Post: 19th October 2007, 20:47
  3. Data model
    By steg90 in forum Qt Programming
    Replies: 3
    Last Post: 17th September 2007, 13:14
  4. speed of setdata - lots of items in treeview
    By Big Duck in forum Qt Programming
    Replies: 4
    Last Post: 6th July 2006, 13:53
  5. Replies: 16
    Last Post: 7th March 2006, 16:57

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.