Re: [Interest] qmldir Internal Singleton File

2019-05-03 Thread Furkan Üzümcü
Hi Richard. I tried it without the version numbers as well, and I get the same error. Thanks for pointing to the code. I've been meaning to get my hands dirty, this seems like a great opportunity for it. I appreciate the help. Regards, Furkan Üzümcü On May 3, 2019, 17:42 -0400, Richard

Re: [Interest] qmldir Internal Singleton File

2019-05-03 Thread Richard Weickelt
Furkan, > In the documentation for qmldir, there’s an option to make a QML document > internal to the module it’s defined in with the /internal/ keyword. But when > I use it like so > > /Internal singleton MySingleton.qml 1.0 MySingleton.qml/ > / > / > I get the following error: > >> /invalid

Re: [Interest] Operator QMap[] is casting to int?

2019-05-03 Thread Murphy, Sean
> Unless Qt supports negative indexes (like python's [-1]) I would have thought > this would be an int. Thanks for catching that everyone. I'm assuming you made a typo there and meant to say "uint"? Regardless here's the official reason why Qt uses "int" for container indices:

Re: [Interest] Query on eglfs

2019-05-03 Thread Thiago Macieira
On Friday, 3 May 2019 05:00:09 PDT praveen kumar wrote: > I dont want to include opengl or eglfs in my ptoject Then don't. But what graphical windowing system *do* you want to use on your device? -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel System Software

Re: [Interest] Operator QMap[] is casting to int?

2019-05-03 Thread Jason H
*facepalm*   Unless Qt supports negative indexes (like python's [-1]) I would have thought this would be an int. Thanks for catching that everyone. BTW: I meant to do:  quint32 foregroundColor = reverseHist[foregroundPixels]; So it was good I appened attentiont to the warning.    Sent: 

Re: [Interest] Operator QMap[] is casting to int?

2019-05-03 Thread Mike Chinander
On that last line you're indexing a QList which takes an int for its argument. https://doc.qt.io/qt-5/qlist.html#operator-5b-5d On Fri, May 3, 2019 at 9:44 AM Jason H wrote: > Given the code below: > QMap reverseHistogram; > ... > QList reverseKeys = reverseHistogram.keys(); > int

Re: [Interest] Operator QMap[] is casting to int?

2019-05-03 Thread Murphy, Sean
> uint foregroundPixels = reverseKeys[foregroundIndex]; > uint foregroundColor = reverseKeys[foregroundPixels]; //main.cpp:66:37: > warning: implicit conversion changes signedness: 'uint' (aka 'unsigned int') > to 'int' > > Where is the "signed" conversion happening? foregroundPixels is a

[Interest] qmldir Internal Singleton File

2019-05-03 Thread Furkan Üzümcü
Hello. In the documentation for qmldir, there’s an option to make a QML document internal to the module it’s defined in with the internal keyword. But when I use it like so Internal singleton MySingleton.qml 1.0 MySingleton.qml I get the following error: > invalid qmldir directive contains

Re: [Interest] Trying to access Microphone via QAudioInput on Mac 10.14

2019-05-03 Thread Roland Winklmeier
Am Fr., 3. Mai 2019 um 16:35 Uhr schrieb Jason H : > You have to add the description of microphone use to be presented to the > user. > > I've done somethign similar to this, for video I think, and I did get the > popup and it worked as it should have. > Almost. Meanwhile I can answer my own

[Interest] Operator QMap[] is casting to int?

2019-05-03 Thread Jason H
Given the code below: QMap reverseHistogram; ... QList reverseKeys = reverseHistogram.keys(); int foregroundIndex = reverseHistogram.size()-2; // arg, QMap::size() returns signed uint foregroundPixels = reverseKeys[foregroundIndex]; uint foregroundColor = reverseKeys[foregroundPixels];

Re: [Interest] Trying to access Microphone via QAudioInput on Mac 10.14

2019-05-03 Thread Jason H
You have to add the description of microphone use to be presented to the user.   I've done somethign similar to this, for video I think, and I did get the popup and it worked as it should have.   Sent: Thursday, May 02, 2019 at 9:37 AM From: "Roland Winklmeier" To: interest@qt-project.org

[Interest] Query on eglfs

2019-05-03 Thread praveen kumar
Hi Qt Experts, I am compiling Qt 5.9 source code for my ARM target. I have added an option "-no-opengl" while building. The build was successful and the new cross compiled libraries are loaded on to the ARM target When i run a sample Qt application on ARM target, it gives an error "The