Re: [Interest] SQL databases and threading

2018-10-11 Thread Andrew Ialacci
It is not. You should create a QObject, move that to a thread, and then work with the query inside the thread inside the QObject. I needed to do massive insertion of financial data and ended up writing a request / reply interface. Think QNetworkRequest / Reply and then a dispatcher to handle th

[Interest] SQL databases and threading

2018-10-11 Thread Konstantin Shegunov
Hello, Is there any way to tell (besides looking at the sources) if a given SQL plugin, or single methods of it, is reentrant/thread safe? The docs are rather evasive on the issue ... What would be allowed to do if I want to thread the SQL queries? Can I serialize the exec/prepare and then pull the

Re: [Interest] Icons on macOS

2018-10-11 Thread Mitch Curtis
It seems that after wiping the build directory and rebuilding it has started working. :/ On 10/9/18, 7:12 AM, "Interest on behalf of Mitch Curtis" wrote: The Qbs docs state that there is no direct equivalent to ICON: https://doc.qt.io/qbs/porting-to-qbs.html#icon I’ve got

Re: [Interest] [Android] Qt machine unique id

2018-10-11 Thread Thiago Macieira
On Thursday, 11 October 2018 11:26:54 PDT Thiago Macieira wrote: > But it's somehow broken: > > $ tests/manual/qsysinfo/qsysinfo | grep Unique > QSysInfo::machineUniqueId() = > QSysInfo::bootUniqueId() = As far as I can tell, this is not our fault. This Python script[1] also fails to get *any* s

Re: [Interest] [Android] Qt machine unique id

2018-10-11 Thread Thiago Macieira
On Thursday, 11 October 2018 01:26:47 PDT Marek.Floriańczyk wrote: > I'm using QSysInfo::uniqueMachineId in Windows environment but on macOS Qt > 5.11.1 does not have this implemented Yes, it does: https://code.woboq.org/qt5/qtbase/src/corelib/global/ qglobal.cpp.html#_ZN8QSysInfo15machineUniqueI

Re: [Interest] Capture keyPressEvent on QMenuBar/QMenu?

2018-10-11 Thread Israel Brewster
On Oct 11, 2018, at 8:36 AM, Israel Brewster mailto:ibrews...@flyravn.com>> wrote: On Oct 11, 2018, at 2:54 AM, Frederik Christiani via Interest mailto:interest@qt-project.org>> wrote: On 11-10-2018 02:02, Tony Rietwyk wrote: Hi Israel, Try installEventFilter on the menu to see the KeyPress e

Re: [Interest] Capture keyPressEvent on QMenuBar/QMenu?

2018-10-11 Thread Israel Brewster
On Oct 11, 2018, at 2:54 AM, Frederik Christiani via Interest mailto:interest@qt-project.org>> wrote: On 11-10-2018 02:02, Tony Rietwyk wrote: Hi Israel, Try installEventFilter on the menu to see the KeyPress events before they are handled by the menu. In the eventFilter you'll want to look a

[Interest] Signals with QByteArray do not work in QML?

2018-10-11 Thread Jason H
So originally, QByteArray was not supported in QML. Then this happened in 5.8: http://doc.qt.io/qt-5/qtqml-cppintegration-data.html#qbytearray-to-javascript-arraybuffer So naturally I tried to emit newData(QByteArray data), but this was not caught by my connections: Connection { target: shi

Re: [Interest] Capture keyPressEvent on QMenuBar/QMenu?

2018-10-11 Thread Frederik Christiani via Interest
On 11-10-2018 02:02, Tony Rietwyk wrote: Hi Israel, Try installEventFilter on the menu to see the KeyPress events before they are handled by the menu. In the eventFilter you'll want to look at the events of type QEvent::ShortcutOverride. Remember to accept() the event if you don't want the s

Re: [Interest] [Android] Qt machine unique id

2018-10-11 Thread coroberti .
On Wed, Oct 10, 2018 at 10:53 PM Thiago Macieira wrote: > > On Wednesday, 10 October 2018 07:00:13 PDT Igor Mironchik wrote: > > Maybe MAC address of the network interface is good enough for you? > > There are some RFCs and internet drafts that recommend creating random or > pseudo-random MAC addr

[Interest] QJSengine access QObject children

2018-10-11 Thread Eric Lemanisser
Hello, I'm starting to use QJSEngine in order to make a full QObject hierarchy scriptable. Calling QJSEngine::newQObject gives access to signals, slots and properties of the object from the javascript side, but I could not find the QObject's children in any properties, contrary to what is describe

Re: [Interest] [Android] Qt machine unique id

2018-10-11 Thread Marek.Floriańczyk
Dnia środa, 10 października 2018 15:50:44 CEST Thiago Macieira pisze: > On Wednesday, 10 October 2018 13:18:59 PDT Jérôme Godbout wrote: > > I was hoping some device id was existing, but I will go with android id > > and > > make a platform function, with a TODO for the iOS one and trying to figure