Re: [Interest] Why does QML prefer 'count' over '.length'?

2016-07-26 Thread J-P Nurmi
On Tuesday, July 26, 2016 22:04,Jason H wrote: > JS uses length on arrays and strings. Anytime you have an array (be it a > list, etc) the number of items is denoted as .length And in QML you have .length where you'd expect to have it, in JS arrays and strings. > It makes no

Re: [Interest] DelegateModel: Dynamic Delegate Model groups

2016-07-26 Thread Jason H
Oh, I may see the problem, I created the objects as: Component { id: recipientComponent DelegateModelGroup {} } var recipientGroup = recipientComponent.createObject(recipientComponent, {includeByDefault: false, name: number}); I don't know how I can more strongly type that. I'd expect Qt

Re: [Interest] Why does QML prefer 'count' over '.length'?

2016-07-26 Thread Jason H
> Sent: Tuesday, July 26, 2016 at 1:57 PM > From: "J-P Nurmi" > To: "interest@qt-project.org" > Subject: Re: [Interest] Why does QML prefer 'count' over '.length'? > > On Tuesday, July 26, 2016 19:02, Jason H wrote: > > I seem to remember

[Interest] QtSensors Double Tap on Androdi

2016-07-26 Thread Artem Fedoskin
Hi, I'm trying to use Qt Sensors but it doesn't work on my Nexus 7 (2nd gen). First I used QTapSensor from C++ but QTapSensor::reading() returns null and QTapSensor::connectToBackend() returns false, although I call setReturnDoubleTapEvents(true) and start() before using sensor. Second I used

[Interest] Qt Installer Framework: Use C++ for scripting instead of JavaScript?

2016-07-26 Thread Jochen Baier
Hi, i wonder if it is possible to use C++ instead of JavaScript for writing the Controller and Components scripts? If yes, is there some documentation available? Thanks Jochen ___ Interest mailing list Interest@qt-project.org

Re: [Interest] Why does QML prefer 'count' over '.length'?

2016-07-26 Thread J-P Nurmi
On Tuesday, July 26, 2016 19:02, Jason H wrote: > I seem to remember that too. Would it be possible to at least add .length so > that we conform to the norm? Adding .length to QML "stuff" is not very specific. Where exactly would you like .length to be added? For something like

Re: [Interest] DelegateModel: Dynamic Delegate Model groups

2016-07-26 Thread Jérôme Godbout
Just to make sure the concat really generate the JS array, try the following (It should not give any difference, but just to make sure): function adaptQList(src) { var rv = []; for(var i = 0; i < src.length; ++i) rv.push(src[i]); return rv; } But I suspect you have a type mismatch here, since

Re: [Interest] DelegateModel: Dynamic Delegate Model groups

2016-07-26 Thread Jason H
  Thanks for the pointer, but when I hacked it in as a p.o.c: groups = [].concat(recipientModelGroups); //Error: Cannot assign QList to QQmlListProperty (groups is a DelegateModel.group property, recipentModelGroups is a js array of DelegateModelGroups). I think I'm trying to go the

Re: [Interest] Why does QML prefer 'count' over '.length'?

2016-07-26 Thread Jason H
> Sent: Tuesday, July 26, 2016 at 12:40 PM > From: "Thiago Macieira" > To: interest@qt-project.org > Subject: Re: [Interest] Why does QML prefer 'count' over '.length'? > > Em terça-feira, 26 de julho de 2016, às 15:59:27 PDT, Jason H escreveu: > > I've pretty much

Re: [Interest] Statically linking an open-source application with Qt?

2016-07-26 Thread Thiago Macieira
Em terça-feira, 26 de julho de 2016, às 17:15:55 PDT, Vik k escreveu: > Hey, I wrote an open source application using Qt and now I want to > statically link it to the Qt library. My question is, is it legal to do so? Yes. Whenever you use Qt (or any software you didn't write, for that matter),

Re: [Interest] Why does QML prefer 'count' over '.length'?

2016-07-26 Thread Thiago Macieira
Em terça-feira, 26 de julho de 2016, às 15:59:27 PDT, Jason H escreveu: > I've pretty much standardized on the JS 'length' property, but why does all > the Qt/QML stuff use .count? the C++ API used size(). The C++ API has all three. > > It's just a minor frustration. It would be cool if Qt/QML

Re: [Interest] DelegateModel: Dynamic Delegate Model groups

2016-07-26 Thread Jérôme Godbout
QQmlListProperty<> cannot be assign with another QQmlListProperty<> or a QList<>, but it does support javascript Array. I myself made a simple function to convert: function adaptQQLP(list_obj) { return [].concat(list_obj); } It does iterate on it and create a javascript array which is enough

Re: [Interest] Statically linking an open-source application with Qt?

2016-07-26 Thread Nuno Santos
Vik, I have commercial products and I want to have peaceful sleep at night, so I have bought the commercial license. Since Qt provides all the the source code and all the information to build Qt from source is around, of course you can do it. If it is legally permitted, I don’t know. I don’t

Re: [Interest] Statically linking an open-source application with Qt?

2016-07-26 Thread Nuno Santos
To compile and deploy a statically linked Qt you need a comercial license. Nuno > On 26 Jul 2016, at 16:15, Vik k wrote: > > Hey, I wrote an open source application using Qt and now I want to statically > link it to the Qt library. My question is, is it legal to do so? >

Re: [Interest] Statically linking an open-source application with Qt?

2016-07-26 Thread Vik k
Hey Nuno, I've found this link: https://stackoverflow.com/questions/12654613/static-linking-qt-with-open-source-version They say that I need to provide object files so user can relink the application and it should be fine, in my case I provide the whole source, so shouldn't it be totally fine?

Re: [Interest] DelegateModel: Dynamic Delegate Model groups

2016-07-26 Thread Jason H
> I'd just write my proxy model in C++ and be done with it. > > André > > > Op 26/07/2016 om 15:46 schreef Jason H: > > I want to have groups corresponding to the equivalent of 'SELECT DISTINCT > > x' query. Then I want each item assigned to a group of it's value of x. For > > example: > >

Re: [Interest] Statically linking an open-source application with Qt?

2016-07-26 Thread Olivier B.
I am not sure you are even able to link all Qt statically. Won't you at least need platform plugins, image plugins, etc as shared libraries? Google gives this : https://wiki.qt.io/Building_a_static_Qt_for_Windows_using_MinGW 2016-07-26 17:15 GMT+02:00 Vik k : > Hey, I wrote

[Interest] Statically linking an open-source application with Qt?

2016-07-26 Thread Vik k
Hey, I wrote an open source application using Qt and now I want to statically link it to the Qt library. My question is, is it legal to do so? On the website I am going to provide several download links to precompiled versions of my app for Windows, Mac and Linux and a link to the GitHub

Re: [Interest] ECMA-262 Spec?

2016-07-26 Thread Giuseppe D'Angelo
On Tue, Jul 26, 2016 at 4:31 PM, Jason H wrote: > According to http://doc.qt.io/qt-5/qtqml-javascript-hostenvironment.html, Qt > supports 5th ed. But accordign to > https://en.wikipedia.org/wiki/ECMAScript#Implementations, Qt supports 6th ed. > I give equal odds to Qt docs

[Interest] ECMA-262 Spec?

2016-07-26 Thread Jason H
According to http://doc.qt.io/qt-5/qtqml-javascript-hostenvironment.html, Qt supports 5th ed. But accordign to https://en.wikipedia.org/wiki/ECMAScript#Implementations, Qt supports 6th ed. I give equal odds to Qt docs being out of date as much to the Wiki being wrong. What's the status of

Re: [Interest] DelegateModel: Dynamic Delegate Model groups

2016-07-26 Thread André Somers
I'd just write my proxy model in C++ and be done with it. André Op 26/07/2016 om 15:46 schreef Jason H: I want to have groups corresponding to the equivalent of 'SELECT DISTINCT x' query. Then I want each item assigned to a group of it's value of x. For example: 'SELECT DISTINCT x' -> ['a',

[Interest] Why does QML prefer 'count' over '.length'?

2016-07-26 Thread Jason H
I've pretty much standardized on the JS 'length' property, but why does all the Qt/QML stuff use .count? the C++ API used size(). It's just a minor frustration. It would be cool if Qt/QML was brought inline with the JS convention... ___ Interest

[Interest] DelegateModel: Dynamic Delegate Model groups

2016-07-26 Thread Jason H
I want to have groups corresponding to the equivalent of 'SELECT DISTINCT x' query. Then I want each item assigned to a group of it's value of x. For example: 'SELECT DISTINCT x' -> ['a', 'b', 'c'] 'SELECT x,y' -> [ ['a', '1'], ['a','2'], ['b','3'], ['c', '4'], ['c','11'] ] Then I have 3

Re: [Interest] Problems customising Slider Qt 5.7 when Qml is loaded by a loader - Object destroyed during incubation

2016-07-26 Thread Mitch Curtis
I doubt that it’s fixed. The others were closed as duplicates. Judging from the IRC log that JP posted, it seems that Simon is planning to look into the issue when he finds time. From: Nuno Santos [mailto:nunosan...@imaginando.pt] Sent: Tuesday, 26 July 2016 12:56 PM To: Mitch Curtis

Re: [Interest] Problems customising Slider Qt 5.7 when Qml is loaded by a loader - Object destroyed during incubation

2016-07-26 Thread Nuno Santos
Mitch, Thanks for the share. It seems that this bug was reported in several forms but couldn’t find one that was resolved already. Do you know if this was already sorted out by Qt team? Regards, Nuno Santos Founder / CEO / CTO www.imaginando.pt +351 91 621 69 62 > On 26 Jul 2016, at 11:51,

Re: [Interest] Qt 3D Issue on Android

2016-07-26 Thread Oleg Evseev
Hi, Navaneeth. Qt 3D 5.5 commit was a pretty long time ago and it was positioned as technical preview . Did you try last Qt 3d 5.7 (at least 5.7.0)? --- Regards, Oleg 2016-07-26 13:46 GMT+03:00 Navaneeth K Ramakrishnan : > Hi, > > > I am getting an error, when running

Re: [Interest] Problems customising Slider Qt 5.7 when Qml is loaded by a loader - Object destroyed during incubation

2016-07-26 Thread Mitch Curtis
Looks like this bug: https://bugreports.qt.io/browse/QTBUG-50992 From: Interest [mailto:interest-bounces+mitch.curtis=qt...@qt-project.org] On Behalf Of Nuno Santos Sent: Tuesday, 26 July 2016 10:56 AM To: Qt Project MailingList Subject: [Interest] Problems customising

[Interest] Qt 3D Issue on Android

2016-07-26 Thread Navaneeth K Ramakrishnan
Hi, I am getting an error, when running Qt 3d 2.0 app on android using Qt 5.5 Scenario : When we move the application to the background. And stay in background for a while, and come back by selecting the application icon or from recent apps window. When application comes into foreground it

[Interest] Problems customising Slider Qt 5.7 when Qml is loaded by a loader - Object destroyed during incubation

2016-07-26 Thread Nuno Santos
Hi, Yesterday I started exploring Qt 5.7 Quick Controls 2.0 I’m happy as it solves many problems I was having with the 1.2 controls. When I was about to customize the new Slider i started running into problems -> Object destroyed during incubation I tried to isolate the problem but couldn’t