Re: [Interest] Qt5 Cross Compiling on Linux For Windows

2014-03-06 Thread Mark Brand
On 03/06/2014 10:40 PM, Jonathan Greig wrote: Is there a recommended or proper way for cross-compiling on Linux for Windows in Qt5 that doesn't involve building Qt5 from source? The unsupported/win32-g++-cross mkspec is now removed in Qt5 and I'd like to setup a cross compiler under

Re: [Interest] Working with Q*Models and SQLite3 limitations

2014-02-26 Thread Mark Brand
On 02/26/2014 05:14 PM, Jason H wrote: I'm trying to work with SQLite 3 and QSqlQueryModel/QSqlTableModel. Normally I have not problem using these as data sets are small, and I'm interesting in the rows in returned order. I recently tried to grab arbitrary data from the model sample model

Re: [Interest] QSqlTableModel remove row

2014-02-15 Thread Mark Brand
On Feb 14, 2014, at 3:59 PM, igor.mironc...@gmail.com mailto:igor.mironc...@gmail.com igor.mironc...@gmail.com mailto:igor.mironc...@gmail.com wrote: Hi. How to correctly remove row from QSqlTableModel? I’ve used removeRow() and removeRows() but they are half-worked. They remove row

Re: [Interest] QSqlTableModel couldn't insert new record.

2014-02-14 Thread Mark Brand
On 02/14/2014 01:11 PM, igor.mironc...@gmail.com wrote: I’m trying to insert new record to the table with: QSqlRecord r; r.setValue( 0, 0 ); r.setValue( 1, QString() ); r.setValue( 2, QString() ); r.setValue( 3, QString() ); if( !d-model-insertRecord( -1, r ) )

Re: [Interest] QSqlQuery

2014-01-26 Thread Mark Brand
On 01/26/2014 07:45 PM, arno wrote: Hi Igor, On 26-Jan-14 4:29 PM, Igor Mironchik wrote: I have some questions about database support in Qt 5. First of all, is it safe to transfer a QSqlQuery instance from one thread to another to process him in another thread. I.e. I want to execute

Re: [Interest] QSqlQuery

2014-01-26 Thread Mark Brand
On 01/26/2014 09:24 PM, Igor Mironchik wrote: Igor Mironchik schreef op 26-1-2014 16:29: Hi. I have some questions about database support in Qt 5. First of all, is it safe to transfer a QSqlQuery instance from one thread to another to process him in another thread. I.e. I want to

Re: [Interest] Updating view after cached sql delete

2013-12-14 Thread Mark Brand
On Friday 13 December 2013 22:47:18 Knut Krause wrote: Hi, I'm showing my QSqlTableModel in a QTableView. I've set the submit policy to ManualSubmit. If I delete a row from my model the view keeps a blank row with an exclamation mark as index. Can I somehow remove this row? I tried

Re: [Interest] Storing complex SQL relations with Qt

2013-12-12 Thread Mark Brand
[Interest] How to insert a new record with generated primary key into a QSqlTableModel for that. But I've been readin all day long and I can't find a solution on how I can initialize a new record with my DataMapper form … If you're looking for a way for your application to initialize

Re: [Interest] Qt 5.1.1 SQLite blocks database

2013-10-30 Thread Mark Brand
Now I am porting to Qt 5.1.1 and also using the bundeled SQLite (Version 3.7.17). The program runs without flaws, but as I start a second client it can not make any changes to the database getting the error “database is locked Unable to fetch row. It seems to me, that the first program using

Re: [Interest] QSqlDatabase and threads

2013-05-30 Thread Mark Brand
On Thursday 30 May 2013 18:03:15 Witold E Wolski wrote: I am using threading to speed up compuation. Each thread produces some results which I would like to store in a sqlite file. My idea is to have something like an monitor object which has an QSqlDatabase member and a insert

Re: [Interest] Default delegate with QTableView and QSqlTableModel

2013-03-28 Thread Mark Brand
So my question is: is it possible to change the default type for INTEGER to QVariant::Int from qlonglong? Or even better, is it possible to change that for just a selected column in the QSqlTableModel? That would be a clean solution. Another good solution would be to set a

Re: [Interest] How to save QTextEdit content by QSqlQuery

2013-01-26 Thread Mark Brand
Andre Somers wrote: snip As long as you use the binding feature of QSqlQuery to put your HTML in your query, as opposed to trying to build the sting manually, you should be fine. André Thanks for mentioning this posibility. It didn't occur to me in time for my earlier comment in this

Re: [Interest] Qt5 mingw builds

2013-01-09 Thread Mark Brand
Вторник, 8 января 2013, 23:26 +02:00 от Nikos Chantziaras rea...@gmail.com: On 08/01/13 23:22, Konrad Rosenbaum wrote: On Tuesday 08 January 2013, Diego Iastrubni wrote: So... cross compiling Qt5/win32 from Linux is not possible yet? In theory it should be

Re: [Interest] QSqlTableModel and transactions

2013-01-04 Thread Mark Brand
Petric Frank wrote: Hello, i ran into an issue using transactions together with QSqlTableModel. Whenever i do a QSqlDatabase::rollback () the QSqlTableModel internal buffer is not updated to reflect this. So it still shows the data before the rollback. I'm not sure whether your internal

Re: [Interest] submit policy

2012-05-24 Thread Mark Brand
You're using QSqlTableModel, right? Have you tried adjusting QSqlTableModel::EditStrategy to OnFieldChange? I am not using the QSqlTableMode, I am implementing my own QAbstractItemModel, wrapping some driver calls to an USB device. But even if I would use QSqlTableModel, I would run into

Re: [Interest] QSqlTableModel -- best approach for simple database application?

2012-05-24 Thread Mark Brand
I've started browsing the SQL Table Model example in the 4.8 documentation (sql/tablemodel/tablemodel.cpp), but I seem to recall some discussions suggesting that QSqlTableModel has some limitations or problems that might make it not the best choice. Qt 5 has many improvements for

Re: [Interest] Distro-provided xcb packaging; xcb advnatages over xlib

2012-04-14 Thread Mark Brand
Here are relevant bugID's: https://bugs.mageia.org/show_bug.cgi?id=5030 https://bugreports.qt-project.org/browse/QTBUG-24835 https://bugreports.qt-project.org/browse/QTBUG-24913 It's probably worth mentioning that opensuse factory (12.2) xcb-related RPMs now work for building the Qt 5 xcb