Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Somebody use Strategy OnRowChange in Qt 4 with MySQL on Linux?
Forum Updated to NodeBB v4.3 + New Features

Somebody use Strategy OnRowChange in Qt 4 with MySQL on Linux?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 984 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tnsr
    wrote on last edited by
    #1

    Hello.

    "Code example here:":http://qt-project.org/doc/qt-4.8/demos-sqlbrowser-browser-cpp.html

    I have got table in my MySQL database.
    Then I select driver MySQL from list and select any table from list.
    Then I change data in any existing record(or insert record and change data) and move cursor to other row.
    And now I expect that data saved in my database.(Becorse setEditStrategy is QSqlTableModel::OnRowChange.)
    I check data in table in another program - but table not changed.
    Then if in sqlbrowser select table in widget again - all visible changes lost.

    deleting rows work correctly - but in code for deleting setEditStrategy is QSqlTableModel::OnManualSubmit and SubmitAll()

    Say me how to know reason of this behaviour. Is it bug of QtSQL in Qt 4.8.5?
    May I use Qt Creator, gdb or other some debug options(methods) for diagnose?
    Somebody use Strategy OnRowChange in Qt 4 with MySQL?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tnsr
      wrote on last edited by
      #2

      I think - it is bug in QSqlTableView
      I will be use qt5. Because "workarounds" is not well.

      "bugreports.qt-project":https://bugreports.qt-project.org/browse/QTBUG-35671

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved