[Interest] saving data using QtSql during shutdown

2013-11-11 Thread Francisco Ares
Hi, I am finishing an embedded system, using Linux and Qt as the base of the application that manages the system, and as a manager to a SQLite database for this application. As it will be using a flash SATA module, I would not like to do many and frequent write operations to it. So, I would

Re: [Interest] saving data using QtSql during shutdown

2013-11-11 Thread Emmanuel Bourgerie
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is the closeEvent called when the application shuts down? That would be my first guess. Emmanuel Bourgerie Web developer Dublin, Ireland (+353) 8 144 5278 http://bourgerie.fr/ Confus avec BEGIN PGP SIGNED MESSAGE ? http://weusepgp.info/fr Confused

[Interest] QStringList, takeFirst and order of execution

2013-11-11 Thread Samuel Gaist
Hi, I have been experiencing a strange behavior with QStringList and the order of execution of takeFirst. The following code: QString line = file.readLine(); // line contains 46 71\n QStringList lineData = line.split(); // lineData contains (46, 71\n) qDebug() lineData.takeFirst()

Re: [Interest] saving data using QtSql during shutdown

2013-11-11 Thread Thiago Macieira
On segunda-feira, 11 de novembro de 2013 10:16:18, Francisco Ares wrote: Hi, I am finishing an embedded system, using Linux and Qt as the base of the application that manages the system, and as a manager to a SQLite database for this application. As it will be using a flash SATA module, I

Re: [Interest] QStringList, takeFirst and order of execution

2013-11-11 Thread Thiago Macieira
On segunda-feira, 11 de novembro de 2013 13:37:20, Samuel Gaist wrote: Hi, I have been experiencing a strange behavior with QStringList and the order of execution of takeFirst. qDebug() lineData.takeFirst() lineData.takeFirst(); The problem is not takeFirst. behaves differently on two

Re: [Interest] QStringList, takeFirst and order of execution

2013-11-11 Thread Giuseppe D'Angelo
Il 11/11/2013 13:37, Samuel Gaist ha scritto: Hi, I have been experiencing a strange behavior with QStringList and the order of execution of takeFirst. The following code: QString line = file.readLine(); // line contains 46 71\n QStringList lineData = line.split(); // lineData contains (46,

[Interest] Issue with the app on the omap4

2013-11-11 Thread Alexander Chapkin
Hi, all! I'm trying to run my app on the omap4 module (it's variscite var-som-om44 with the ubuntu 12.04 on it). I cross-compiled qt5 (tryed 5.0.2, 5.1.0, 5.2.0) and cross-compiled my app. It builds well, but when I tried to run it on the device I got an error: http://pastebin.com/GYHPE34P Then

[Interest] correct d_ptr implementation

2013-11-11 Thread Graham Labdon
Hi I am developing a library and in Qt Tradition I want to use the d_ptr pattern. I have no previous experience of using this pattern and have a simple example working but wanted to check that my implementation is correct. To that end I have set out my classes below and would be grateful if

Re: [Interest] QStringList, takeFirst and order of execution

2013-11-11 Thread Samuel Gaist
On 11 nov. 2013, at 13:42, Thiago Macieira thiago.macie...@intel.com wrote: On segunda-feira, 11 de novembro de 2013 13:37:20, Samuel Gaist wrote: Hi, I have been experiencing a strange behavior with QStringList and the order of execution of takeFirst. qDebug() lineData.takeFirst()

Re: [Interest] QStringList, takeFirst and order of execution

2013-11-11 Thread Samuel Gaist
On 11 nov. 2013, at 13:50, Giuseppe D'Angelo giuseppe.dang...@kdab.com wrote: Il 11/11/2013 13:37, Samuel Gaist ha scritto: Hi, I have been experiencing a strange behavior with QStringList and the order of execution of takeFirst. The following code: QString line = file.readLine();

[Interest] OpenGL under QML example does not work with dynamic object creation

2013-11-11 Thread Jay Sprenkle
Good morning, Does anyone have time to help debug a problem? I’m trying to get the OpenGL under QML example to work with dynamic object creation with no luck. *The setup:* I’ve partitioned the app window into a status bar and a display area. The display area will be used to render output from

[Interest] Android's Google Maps and order of rendering

2013-11-11 Thread Ben Lau
Hi all, I would like to embed a Google Map using Native SDK on Android. Now I am able to construct the Map using Java code. However, it has problem to interact with QML. The Google Map library (part of Google Play Services) render its content on an android.view.View object. As QML do not support

Re: [Interest] correct d_ptr implementation

2013-11-11 Thread Constantin Makshin
1) put your 'd_ptr' into a smart pointer of some kind (usually QScopedPointer), your example leaks memory; 2) placing 'q_ptr' in the public section doesn't make much sense because it's supposed to be used only by the DisplayWidgetPrivate instance to access its owner (DisplayWidget doesn't need any

Re: [Interest] correct d_ptr implementation

2013-11-11 Thread andre
Constantin Makshin schreef op 11.11.2013 18:33: 1) put your 'd_ptr' into a smart pointer of some kind (usually QScopedPointer), your example leaks memory; 2) placing 'q_ptr' in the public section doesn't make much sense because it's supposed to be used only by the DisplayWidgetPrivate

Re: [Interest] correct d_ptr implementation

2013-11-11 Thread Constantin Makshin
Right, but: 1) classes derived from DisplayWidget may want to derive their *Private counterparts from DisplayWidgetPrivate — in this case private section will make DisplayWidgetPrivate's internals accessible only to this class itself and its friend DisplayWidget; 2) since not all compilers support

Re: [Interest] QtDBus interface design question

2013-11-11 Thread Thiago Macieira
On quinta-feira, 7 de novembro de 2013 19:01:57, Roland Winklmeier wrote: Hey there, Hello Roland As promised, I have found time to read your email and reply. I have a daemon application built with C++/Qt. It is a client for a network and should run in the background. The plan was to connect

Re: [Interest] correct d_ptr implementation

2013-11-11 Thread andre
Ok, but if your 'private' class is designed to be derived from, then I guess it was not all that private after all. It is more like it is to be protected instead of private. If the class really is private (for instance by not using a displaywidget_p.h for declaring it, but by just

[Interest] Replicate QML Listview in QtCpp and widgets

2013-11-11 Thread Simone
Hello all, For a customer specific application we are forced to use only C++ code without QML. Up to here there are no problems, except that in this new software, we need massive use of listview (finger-scrollable, with text and image objects, smooth moving). So, the QML Listview is exactly

Re: [Interest] correct d_ptr implementation

2013-11-11 Thread Constantin Makshin
Yes, I meant the private subclassing in a way like the one used by Qt where it's used to both hide internals from the outer world and reduce memory overhead by sharing one 'd_ptr' field between many classes. But no, 'd_ptr' must be private to prevent classes derived from DisplayWidget from

Re: [Interest] Replicate QML Listview in QtCpp and widgets

2013-11-11 Thread Alan Alpert
Depending on what political reasons means, you could do stuff like QQmlComponent c; c.setData(import MyApp 0.1; import QtQuick 2.2; ListView{model: MyModel{}; delegate: MyDelegate{}}); inside your C++ implementation. MyModel being your custom QAbstractItemModel and MyDelegate being a custom

[Interest] Why are QUuid saved as blobs and not strings in QSqlite driver?

2013-11-11 Thread Philipp Kursawe
Is there a reason why UUIDs are not saved using toRfc4122().toLatin1() in the database? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] R: Replicate QML Listview in QtCpp and widgets

2013-11-11 Thread Simone
Hello Alan, thank you. The customer don't want QML because for some strange reason he don't want to use it. I don't know much more, anyway I have to adapt.. And of course we cannot force him to use QML. I've saw your example but seems that is only for qt5, we are currently using qt4.8.5 Let's

[Interest] QtCreator complains about .pro file could not be parsed for Qt5

2013-11-11 Thread liang jian
Hello everyone, I have a very simple .pro file: #- # # Project created by QtCreator 2013-11-12T09:49:29 # #- QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET =

Re: [Interest] Why are QUuid saved as blobs and not strings in QSqlite driver?

2013-11-11 Thread Constantin Makshin
Probably because binary representation is more space-efficient. On Nov 12, 2013 11:32 AM, Philipp Kursawe phil.kurs...@gmail.com wrote: Is there a reason why UUIDs are not saved using toRfc4122().toLatin1() in the database? ___ Interest mailing

Re: [Interest] R: Replicate QML Listview in QtCpp and widgets

2013-11-11 Thread Clément Geiger
I think you might be interested in this: https://blog.qt.digia.com/blog/2008/11/15/flick-list-or-kinetic-scrolling/ You have the source code and all, it's a good way to learn new things :-) 2013/11/12 Simone cjb.sw.nos...@gmail.com Hello Alan, thank you. The customer don't want QML because