Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-27 Thread Sina Dogru
2016-04-28 0:02 GMT+03:00 Jérôme Godbout : > > Take care, animation and rendering seem to be different thread. The Qml > main thread should block. Maybe I don't get it what you tried here. > > Just want to find out that what I am actually blocking by blocking the flow inside a function where it wa

Re: [Interest] Example for: QTreeView + QAbstractItemModel + external data

2016-04-27 Thread Björn Schäpers
Am 26.04.2016 um 19:05 schrieb anton: Hi, I have subclassed QAbstractItemModel, and I want to load additionally data in the model as soon as somebody clicks on the [+] in the treeview to load the children of this item form an external data ( web- app which gives me json data back). Now: I rei

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-27 Thread Jérôme Godbout
>>I wrote a simple code where a timer increment an int and a text showing that int in QML. And from that QML called a C++ function which blocks it. Take care, animation and rendering seem to be different thread. The Qml main thread should block. Maybe I don't get it what you tried here. >> How ab

Re: [Interest] Few questions regarding Qt Quick Scene Graph

2016-04-27 Thread Artem Fedoskin
1. I have experimented a little with the Scene Graph and got following results: 1. Rectangles with the same color were batched 2. Differently colored rectangles weren't batched 3. Textures were batched if the QQuickWindow::TextureCanUseAtlas flag was set but only if QSG_ATLAS_WIDTH and

Re: [Interest] [Qt3d] Does the duration of NumberAnimation update when you change its value?

2016-04-27 Thread Jason H
I think maybe you should use the SmoothedAnimation velocity property, which woud be degrees per second? You'll also have to change the Easing to linear.         Sent: Wednesday, April 27, 2016 at 1:38 PM From: "Ramy Atalla via Interest" To: "Qt Project" Subject: Re: [Interest] [Qt3d] Does t

[Interest] QVideoFilter questions

2016-04-27 Thread Jason H
I'm trying to use this new (5.5) class for some very basic video frame analysis. (Like, average and stddev luminance values) I wish to use the Filter class in QML. I have a few questions: 1. I want to support as many mobile devices as possible. What are the pixel formats that I must support? I

Re: [Interest] [Qt3d] Does the duration of NumberAnimation update when you change its value?

2016-04-27 Thread Ramy Atalla via Interest
Hi DR. SeanThanks for reply.I tried both methods none of them works, Overall I think I have a problem controlling the animation (start/stop/restart).I have a slider which generates a value between 0-5000 for the duration of the animation, On value change of the slider it calls a function which d

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-27 Thread Ben Lau
Hi Jérôme, On 26 April 2016 at 21:00, Jérôme Godbout wrote: > Hi Dmitry, > not much problems, except this is a modal way for interacting with the > user. I'm not a fan of modal (as matter of fact I hate it, you prevent your > user for copy/paste, check something from the real work window), but

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-27 Thread Sina Dogru
Seems like it is undefined behaviour to have QFileDialog without a parent. Sometimes it becomes "ApplicationModal" but sometimes "NonModal" (I experienced it with a simple code on Linux.).. Also Shawn warned that would block QML thread. So to try what is the behaviour of engine when the thread is

Re: [Interest] How add libsqlite3.dylib to iOS qmake?

2016-04-27 Thread Edward Sutton
Thanks Jason. -Ed On Apr 26, 2016, at 9:25 AM, Jason H mailto:jh...@gmx.com>> wrote: FWIW, Just use Qt to do the SQLite stuff, and provide the functionaltiy in a ObjectiveC .mm file. Example: // ObjectiveC - (BOOL)sendBackgroundChunk { qDebug() << Q_FUNC_INFO; QVariantMap m

Re: [Interest] [qt-android][qt-iOS] Is it possible to disable page scrolling when software keyboard is being shown?

2016-04-27 Thread Mike Krus
Hi the trick I used in the past is to: - put a MouseArea as a child of the TextField to stop the focus becoming active - onClicked, move the TextField to some location, outside where the kb will be positioned, can use Qt.inputMethod.keyboardRectangle to figure out the size of that (not sure i

Re: [Interest] [Qt3d] Does the duration of NumberAnimation update when you change its value?

2016-04-27 Thread Sean Harmer
On Tuesday 26 April 2016 22:27:16 Oleg Evseev wrote: > Hi, Ramy and Sean > > > Something like this should do it (not tested) > > Thank you, Sean. Correct it little bit, tested, it works: > > Entity { > > id: mainEntity > > property real progress: 0.0 > > property real