Please provide a minimal compilable example which reproduces the problem. Your code is too complex (and incomplete) for us to test on our own machines.Originally Posted by MarkoSan
Please provide a minimal compilable example which reproduces the problem. Your code is too complex (and incomplete) for us to test on our own machines.Originally Posted by MarkoSan
I tried, but zip file is too big and i do not know how to distribure sql databse.Originally Posted by wysota
Qt 5.3 Opensource & Creator 3.1.2
Is the situation maybe connected with http://www.trolltech.com/developer/t...entry&id=86645, what do you think?
Qt 5.3 Opensource & Creator 3.1.2
So make it smaller. The example is to be minimal. We don't need your database, just a table schema and some sample data.Originally Posted by MarkoSan
Here is minimal project file and sources (VC++ 6.0 Service Pack 6, Qt 4.0.1). After unziping in .sql file there are table declarations and sample data.
Last edited by MarkoSan; 17th June 2006 at 03:11.
Qt 5.3 Opensource & Creator 3.1.2
I have managed to make it work but I use Qt 4.1.0 on WinXp and MySQL 4.1.11. Similar code didn't work on Qt 4.0.0, but I don't know about 4.0.1. My modifications are commented with 'modified by fane' (hope I didn't miss anyone), and of course your MySQL root password has to be changed.
I have appended two QSqlFields to the record retrieved with model->record() named "ULICA" and "POSTA_STEVILKA", set their value with QSqlRecord::setValue(). I have modified the edit strategy to be OnRowChange and removed the setValue() call for the "SIFRA" field which is autoincremented by MySQL.
I guess you have to move to Qt 4.1.0 according to this
Last edited by fane; 18th January 2006 at 19:02.
Bookmarks