[Interest] Qt Quick 5.3.2 wheel event cascade

2014-11-12 Thread Jérôme Godbout
Hi, I posted to the forum and been ask to forward this on the mailing list. Maybe someone can shed some light on the new behavior for the scrollwheel and the Qt Quick Controls. Here's the forum link: http://qt-project.org/forums/viewthread/48228/ This behavior changed from 5.3.0 (version we are

Re: [Interest] Qt5 and global configuration

2014-11-12 Thread Jérôme Godbout
In the same line about the style, I was wondering the same thing to set a global style for a particular widgets a little while ago: http://qt-project.org/forums/viewthread/45862/ Would have been nice to avoid setting style to each controls individualy. The only things I see is making a singleton

Re: [Interest] Best model type for shared data between C++ and QML, as well as insertion and removal on both sides.

2014-11-20 Thread Jérôme Godbout
Hi, My observation with the QQmlListProperty so far. You can assign to it but only with javascript array, list, etc. It does not allow diect array object instanciate. The following should work: *presets: [patchSet1]* *PatchSet * *{* *id: patchSet1name: Preset 1

Re: [Interest] Best model type for shared data between C++ and QML, as well as insertion and removal on both sides.

2014-11-20 Thread Jérôme Godbout
between your reply I have achieved precisely what you have said in your reply. Which options would you consider for this problem? What about QVariantMap? Is it a model? Can’t find 5.3 documentation for it. Regards, Nuno On 20 Nov 2014, at 15:24, Jérôme Godbout jer...@bodycad.com wrote

Re: [Interest] Best model type for shared data between C++ and QML, as well as insertion and removal on both sides.

2014-11-20 Thread Jérôme Godbout
, Thanks for your reply. Got the idea. Can you point me to useful resources on how to use QVariant on this case? Still didn’t get it how do you use it in this case. Regards, Nuno On 20 Nov 2014, at 16:22, Jérôme Godbout jer...@bodycad.com wrote: It's not really a model, but lesser pain

Re: [Interest] Qt Quick 5.3.2 wheel event cascade

2014-11-24 Thread Jérôme Godbout
I guess nobody care :-( I will maybe just open a bug report then On Wed, Nov 12, 2014 at 9:43 AM, Jérôme Godbout jer...@bodycad.com wrote: Hi, I posted to the forum and been ask to forward this on the mailing list. Maybe someone can shed some light on the new behavior for the scrollwheel

Re: [Interest] Qt Quick 5.3.2 wheel event cascade

2014-11-24 Thread Jérôme Godbout
The associated bug id: https://bugreports.qt-project.org/browse/QTBUG-42273 On Mon, Nov 24, 2014 at 5:12 PM, Jérôme Godbout jer...@bodycad.com wrote: I guess nobody care :-( I will maybe just open a bug report then On Wed, Nov 12, 2014 at 9:43 AM, Jérôme Godbout jer...@bodycad.com wrote

Re: [Interest] QML Qt.lighter() for images?

2014-12-04 Thread Jérôme Godbout
You can take a look at GraphicalEffect module. It’s probably what you are looking for: http://qt-project.org/doc/qt-5/graphicaleffects.html On Dec 4, 2014, at 11:06 PM, Jason H jh...@gmx.com wrote: I'm running into a common issue, where I have art - PNG and SVG that I wish to use the

Re: [Interest] QML StackView fragility (Interest Digest, Vol 39, Issue 14)

2014-12-06 Thread Jérôme Godbout
Hi, you may want to split your work into 2 step, set the source, wait for the status to be Loader.Ready before using the item. onClicked: { … qmlLoader.source = ‘qrc:/qml/HelpPage.qml’; } Loader { onStatusChanged: { if(status == Loader.Ready) {

[Interest] Qml Combo box and model changed

2014-12-10 Thread Jérôme Godbout
Hi, I'm having some problem with i18n along with the ComboBox controls. Here's something I'm doing with it: ComboBox { model: [ qsTr(Choice A) + I18n.revaluate, qsTr(Choice B) + I18n.revaluate ] currentIndex: 1 } I used the i18n revaluation on a singleton to select current

Re: [Interest] Qml Combo box and model changed

2014-12-10 Thread Jérôme Godbout
performance wise if that combo box entry control some workflow or some options of the workflow. On Wed, Dec 10, 2014 at 11:11 AM, Jérôme Godbout jer...@bodycad.com wrote: Hi, I'm having some problem with i18n along with the ComboBox controls. Here's something I'm doing with it: ComboBox

Re: [Interest] [Development] Modifying QQmlFileSelector selector at runtime without Loader or Component

2014-12-16 Thread Jérôme Godbout
You may try to create the object dynamically based on the selector for the source and/or the properties. You could try Qt.createQmlObject() or Qt.createComponent() along createObject(). Your onSelectorChanged could delete previous instance if any and create a new one.

Re: [Interest] What is Qt.red for in QML?

2015-02-05 Thread Jérôme Godbout
you can use the string version color: 'red' or rgba value color: Qt.rgba(1,0,0,1) On Feb 5, 2015, at 6:07 PM, Jason H jh...@gmx.com wrote: Rectangle { ... color: red // works color: Qt.red // does not work Unable to assign int to QColor } Why? What is Qt.red for then? Thanks

[Interest] Custom QQuickItem with Mouse area

2015-02-05 Thread Jérôme Godbout
Hi, I'm trying to create a custom QItem by enabling flag ItemHasContent to true and defining the updatePaintNode() function. It work well and it's fast even for large number of item, 2d points to create a shape. But the mouse area for those draw item are the whole bounding rectangle containing

Re: [Interest] What is Qt.red for in QML?

2015-02-05 Thread Jérôme Godbout
Sorry read too fast the original post, try to print it, if the int is 0, I would guess it's an indexer for rgba values of some sort. May be wrong on this not near my computer to test On Feb 5, 2015, at 8:29 PM, Ian Monroe i...@monroe.nu wrote: On Thu, Feb 5, 2015 at 3:33 PM, Jérôme

Re: [Interest] Custom QQuickItem with Mouse area

2015-02-06 Thread Jérôme Godbout
multiple image into the same rectangle area to perform different operation. If somebody have a better idea to do those thing. Thanks Jerome On Thu, Feb 5, 2015 at 6:43 PM, Jérôme Godbout jer...@bodycad.com wrote: Hi, I'm trying to create a custom QItem by enabling flag ItemHasContent to true

Re: [Interest] Installer Recommendations

2015-02-19 Thread Jérôme Godbout
Can WiX bundle other executables, such as MSVC++ 2010 Redistributables and install them unattended? Yes it does, (assuming VS here) inside the .wixproj define the itemGroup ItemGroupBootstrapperFile Include=Microsoft.Visual.C++.12.0.x64 ProductNameMicrosoft Visual C++

Re: [Interest] Installer Recommendations

2015-02-19 Thread Jérôme Godbout
...@gmail.com wrote: Am 19.02.2015 um 02:54 schrieb Jérôme Godbout jer...@bodycad.com: I up vote for wix, can integrate into Visual Studio and MSBuild. Hmm, why has no one mentioned the reference MSI Installer from Microsoft which comes with Visual Studio itself, with the (commercial) Enterprise

Re: [Interest] Installer Recommendations

2015-02-19 Thread Jérôme Godbout
install maker? On Thu 19 Feb 2015 at 16:53 Jérôme Godbout jer...@bodycad.com wrote: The Visual Studio .msi build-in solution was deprecated years ago, but returned as an extension based on install shield limited edition. I would stay away from that for the time being and use the Wix extension

Re: [Interest] QtQuick - How to move focus away from disabled Item?

2015-01-28 Thread Jérôme Godbout
Hi, This may not be a direct answer but you may want to take a look at FocusScope Qml Element: http://doc.qt.io/qt-5/qml-qtquick-focusscope.html Here's a good explaination about those scope: http://doc.qt.io/qt-5/qtquick-input-focus.html Hope this help somehow, Jerome On Wed, Jan 28, 2015 at

Re: [Interest] QML global variables?

2015-01-06 Thread Jérôme Godbout
are js dictionary make sure to merge left or right the data before assignation. If I use *property var screenData: windowsUniqueId_.appData then it should create a property binding, and merging should not be needed, correct?* *Sent:* Tuesday, January 06, 2015 at 2:14 PM *From:* Jérôme Godbout

Re: [Interest] QML global variables?

2015-01-06 Thread Jérôme Godbout
You can try to use a singleton, seem like what you need. Inside qmldir: *singleton Settings 1.0 Settings.qml* At the beginning of Settings.qml *pragma Singleton* *// import goes here* *QObject* *{* *property var appData* *}* Then you can use the *Settings.appData* Or you can use the cascading

Re: [Interest] Image width and height into Style Component

2015-01-06 Thread Jérôme Godbout
the image dimensions? Regards, Nuno On 06 Jan 2015, at 16:58, Jérôme Godbout jer...@bodycad.com wrote: Hi, I have some problem when using Image into Style Component. The width and height set into the component are overwritten when the component load the image. I cannot set

[Interest] Image width and height into Style Component

2015-01-06 Thread Jérôme Godbout
Hi, I have some problem when using Image into Style Component. The width and height set into the component are overwritten when the component load the image. I cannot set the implicitWidth and Height as they are readonly. Anybody known what to do to scale Image into style component? maybe I should

Re: [Interest] Installer Recommendations

2015-02-18 Thread Jérôme Godbout
I up vote for wix, can integrate into Visual Studio and MSBuild. I use it with VS, MsBuild and Jenkins. Msi are still a pain (compared to rpm, debian package ) but at least the doc are ok and it's free. On Feb 18, 2015, at 8:31 PM, Pavel Koshevoy pkoshe...@gmail.com wrote: There may be

Re: [Interest] Superposed QmlMouseArea with hoveredEnabled

2015-03-11 Thread Jérôme Godbout
Just a note on the MouseArea for AItem, I tried both preventStealing: true propagateComposedEvents: true Without much success On Wed, Mar 11, 2015 at 10:57 AM, Jérôme Godbout jer...@bodycad.com wrote: Hi, I'm running into multiple problems with QmlMouseArea when superposed to each other

[Interest] Superposed QmlMouseArea with hoveredEnabled

2015-03-11 Thread Jérôme Godbout
Hi, I'm running into multiple problems with QmlMouseArea when superposed to each other (running with Qt 5.3.0). The mouse area under containsMouse get stick to true and mouseX, mouseY are incorrect, click does not always (sometime does and sometime don't) get through. Here's a simple explain.

Re: [Interest] QT API wrapper around std:: containers?

2015-01-29 Thread Jérôme Godbout
May take a look at https://web.njit.edu/all_topics/Prog_Lang_Docs/html/qt/qt-template-lib.html On Thu, Jan 29, 2015 at 3:05 PM, Felix morack felixo...@gmail.com wrote: Hi, In light of the size limitations of Qt containers, a collegue suggested writing an API wrapper around a std:: container.

Re: [Interest] QML detecting swipe gesture for open side menu

2015-04-19 Thread Jérôme Godbout
Just a note, also make sure your hover mouse area is parent of all other, sibling mouse area doesn't propagate. This is really annoying to wrap wigets into independent component sometime with this behavior. On Apr 15, 2015, at 4:51 AM, Federico Buti bacaro...@gmail.com wrote: Hi, did

[Interest] Qmldir singleton with different QmlEngine and thread

2015-05-08 Thread Jérôme Godbout
Hi, I'm looking for some information on the behavior of the qmldir singleton used by different QmlEngine and thread. Here's my current usage: - QmlEngine #1 - Main Qml script - Many component - usage Singleton A from custom Qml module AA with pragma SIngleton

Re: [Interest] Qmldir singleton with different QmlEngine and thread

2015-05-08 Thread Jérôme Godbout
at 9:56 AM, Jérôme Godbout jer...@bodycad.com wrote: Hi, I'm looking for some information on the behavior of the qmldir singleton used by different QmlEngine and thread. Here's my current usage: - QmlEngine #1 - Main Qml script - Many component - usage Singleton

Re: [Interest] Qmldir singleton with different QmlEngine and thread

2015-05-11 Thread Jérôme Godbout
I have open a bug here: https://bugreports.qt.io/browse/QTBUG-46040 P.S.: Anybody see my emails on this list, never got any answers in 3-4 questions asked, just to make sure?! On Fri, May 8, 2015 at 10:45 AM, Jérôme Godbout jer...@bodycad.com wrote: I was digging and realized we can register

[Interest] Qml .rcc by module?

2015-06-02 Thread Jérôme Godbout
Hi, It may seem odd, but I'm looking to have some resources bundle that could be generated for some qml modules and only used when the module is used or import. Here's what I'm looking to do: - App.exe --performAction1 - ModuleA 1.0 (qmldir, some .qml) - ModuleA.rcc (images,

Re: [Interest] Qml .rcc by module?

2015-06-02 Thread Jérôme Godbout
options: Loader-Source() (Url or Localfile) Loader-SourceComponent() Dynamic C++: QmlEngine-loadData()/load() QmlComponent-setData()/loadUrl() I have yet to see anyone comment on how to load IMPORTABLE QML components dynamically. md On 6/2/2015 1:44 PM, Jérôme Godbout wrote: Hi

Re: [Interest] QML Inspector?

2015-06-25 Thread Jérôme Godbout
There's GammaRay http://www.kdab.com/kdab-products/gammaray/ https://github.com/KDAB/GammaRay It's not 100% efficient, but better then nothing. We end up doing our own debugger command line to search and inspect object along a TreeView from QWidgets to see/edit properties, pointer value, invoke

Re: [Interest] Projects using Qt Quick Test

2015-06-19 Thread Jérôme Godbout
I don't known any such framework or lib, but we have done our own along Google Test facility in C++ that create the test root engine and Qml engine. We can load any qml script and probe it with some function to validate property on objects. We also made the window display optional so those tests

Re: [Interest] QML Inspector?

2015-06-26 Thread Jérôme Godbout
. On Fri, Jun 26, 2015 at 4:35 PM, Jérôme Godbout jer...@bodycad.com wrote: VS2013 x64 Native Tools Command Prompt On Fri, Jun 26, 2015 at 4:34 PM, Samuel Gaist samuel.ga...@edeltech.ch wrote: Hi, There's no such limitation, you can build it in 64bit. Did you start your build from a amd64

Re: [Interest] QML Inspector?

2015-06-26 Thread Jérôme Godbout
AM, Jérôme Godbout jer...@bodycad.com wrote: Hi, thanks all for your inputs, there's a few thing I was not aware of. For the visualizer, I see little benefit in my use case in desktop, probably more useful for embedded platform project which I think still have a real world purpose

Re: [Interest] QML Inspector?

2015-06-26 Thread Jérôme Godbout
32 bits support last years. On Fri, Jun 26, 2015 at 9:33 AM, Jérôme Godbout jer...@bodycad.com wrote: Hi, thanks all for your inputs, there's a few thing I was not aware of. For the visualizer, I see little benefit in my use case in desktop, probably more useful for embedded

Re: [Interest] QML Inspector?

2015-06-26 Thread Jérôme Godbout
solution. And cannot just add the x64 platform :-( P.S.: you can add building GammaRay in the thing that I don't like about it. Under Linux must be fine, but it's a pain under Windows (sadly I do not always choose the platform I have to work with). On Fri, Jun 26, 2015 at 3:04 PM, Jérôme Godbout jer

Re: [Interest] What about this simple QML is broken?

2015-06-10 Thread Jérôme Godbout
The Rectangle is not a direct parent or sibling of id something, there's Text in between. On Wed, Jun 10, 2015 at 4:48 PM, Jason H jh...@gmx.com wrote: I sat down today to teach someone QML and it didn't work as expected. I'm on Linux usually, this person was on Windows 8, using a 32 bit

Re: [Interest] What about this simple QML is broken?

2015-06-10 Thread Jérôme Godbout
http://doc.qt.io/qt-5/qtquick-positioning-anchors.html#restrictions For references On Wed, Jun 10, 2015 at 4:52 PM, Jérôme Godbout jer...@bodycad.com wrote: The Rectangle is not a direct parent or sibling of id something, there's Text in between. On Wed, Jun 10, 2015 at 4:48 PM, Jason H jh

Re: [Interest] Using QWebSocketServer in a thread other than the GUI thread?

2015-05-27 Thread Jérôme Godbout
Before making the moveToThread(), remove the parent of the object, -setParent(nullptr); Once moved, you can reparent with object into that Thread. Note, if using QItem there's also the QQmlEngine that own the item that is tie to a thread. On Wed, May 27, 2015 at 3:43 AM, Rainer Wiesenfarth

Re: [Interest] Using QWebSocketServer in a thread other than the GUI thread?

2015-05-27 Thread Jérôme Godbout
:06 Jérôme Godbout wrote: Before making the moveToThread(), remove the parent of the object, -setParent(nullptr); Once moved, you can reparent with object into that Thread. No, you cannot. The parent must be another object that lives in the current thread. -- Thiago Macieira

[Interest] Qml Script current script uri

2015-07-02 Thread Jérôme Godbout
Hi, Is there a way to known the current script uri (ex: inside A.qml to known if the script is inside a resource qrc:/Prefix/A.qml or is inside a folder execPath/Prefix/A.qml)? QFile need a relative path to executable or an absolute path. Currently, the script knew the relative path to himself,

Re: [Interest] QML Inspector?

2015-06-29 Thread Jérôme Godbout
for some usage. On Fri, Jun 26, 2015 at 4:47 PM, Jérôme Godbout jer...@bodycad.com wrote: OK, got it to work in VS2013 x64 cross-compiling, seem like my -G flag was not register into the cmake command, du to a non printable character from utf-8 copy paste to ainsi (damn Windows console sometime

[Interest] Qml MouseArea visible and containsMouse

2015-05-21 Thread Jérôme Godbout
Hi, I found a weird behavior with the containsMouse and the mouseArea which I could not explain. When creating mouseArea with visible at false, seem to corrupt the containsMouse and make it true even if mouse is not above it. Here's a small sample to reproduce the bug (Windows 7, Qt 5.3.0):

Re: [Interest] Qml MouseArea visible and containsMouse

2015-05-21 Thread Jérôme Godbout
Seem related to this bug: https://bugreports.qt.io/browse/QTBUG-36191 On Thu, May 21, 2015 at 9:36 AM, Jérôme Godbout jer...@bodycad.com wrote: Hi, I found a weird behavior with the containsMouse and the mouseArea which I could not explain. When creating mouseArea with visible at false, seem

Re: [Interest] .rcc files and modules

2015-06-29 Thread Jérôme Godbout
June 2015 16:09:05 Jérôme Godbout wrote: Hi, I'm looking for a way to load a specific resources files (.rcc) when a modules or a plugins is used. It's automatic when you load the plugin. Anybody have a better way to release resources/modules/plugins? Don't unload plugins. The rcc

[Interest] .rcc files and modules

2015-06-29 Thread Jérôme Godbout
Hi, I'm looking for a way to load a specific resources files (.rcc) when a modules or a plugins is used. Small example: Module A (qml module with qmldir that include plugin A) Plugin A (c++ implementation for some part of Module A) A.rcc (would be the required resources for module A made with

Re: [Interest] QML Inspector?

2015-06-26 Thread Jérôme Godbout
wrote: On 25 Jun 2015, at 21:41, Jérôme Godbout jer...@bodycad.com wrote: There's GammaRay http://www.kdab.com/kdab-products/gammaray/ https://github.com/KDAB/GammaRay It's not 100% efficient, but better then nothing. We end up doing our own debugger command line to search and inspect

[Interest] Is this bug still there?

2015-07-31 Thread Jérôme Godbout
Hi, I would like to know if this bug is still there: https://bugreports.qt.io/browse/QTBUG-42273 The bug is the scroll wheel event auto propagate itself (this was introduced in 5.3.1) to item below without a way to stop it (now it's the delta that is pass as arg and not the scrollwheelEvent

Re: [Interest] Qt .dlls size reduction

2015-08-07 Thread Jérôme Godbout
I have task to reduce the size of an installer of an application from my company Do you mean the installer itself or the installed program? Anyway you may want to take a look at the fat icudt5X.dll, this can easily be compressed with something like UPX http://upx.sourceforge.net/ This could save

[Interest] qDebug under Windows

2015-08-10 Thread Jérôme Godbout
Hi, I have some problem under Windows to redirect the qDebug() default output, it seem to go to the Windows debugger output and I would like it to be sent to stdcerr instead. How/where can I change that for Windows (work normally under Linux)? I think I will have to recompile Qt to do this with

Re: [Interest] Need argumentative help..... giving qobject copy/assignment constructor and put it in qlist/qmap

2015-07-23 Thread Jérôme Godbout
it should be float f = 2.0f; then. I understand the compiler should check if value is in range and precision of a float before emitting a warning. This mostly get annoying inside template function that can handle both float and double, but putting a float inside a double is ok. On Thu, Jul 23,

Re: [Interest] Need argumentative help..... giving qobject copy/assignment constructor and put it in qlist/qmap

2015-07-23 Thread Jérôme Godbout
C4244 is particulary true since Qt mostly use int for every size matter, which on 64 bits system generate a lot of warnings when connecting to Qt. I hope we see a size_t or equivalent some day. I admit the int to unsigned int is also a problem to become, -1 lead to 2^32 - 1, we can only do that if

Re: [Interest] Need argumentative help..... giving qobject copy/assignment constructor and put it in qlist/qmap

2015-07-23 Thread Jérôme Godbout
Nice! good to known, thanks Thiago On Thu, Jul 23, 2015 at 1:23 PM, Thiago Macieira thiago.macie...@intel.com wrote: On Thursday 23 July 2015 09:21:13 Jérôme Godbout wrote: I admit the int to unsigned int is also a problem to become, -1 lead to 2^32 - 1, we can only do that if you known

[Interest] QQmlEngine clearComponentCache() and qmldir singleton

2015-07-16 Thread Jérôme Godbout
Hi, I have a weird behavior with resetting the QQuickView and some Qml script declared singleton inside qmldir. The singleton seem to stop exist properly at some point during resetting the QQuickView script: void myClearCurrentScript() { qquick_view-setSource(QUrl());

[Interest] UHD and HD screen under Windows

2015-07-13 Thread Jérôme Godbout
Hi, Anybody have any tips to detect upon which screen the application or the windows is currently running on into multiple screen setup? The setup is a UHD display as secondary monitor and an Full HD main monitor. I try to launch the application on both screen and the Screen from import

Re: [Interest] QML and Threads

2015-10-21 Thread Jérôme Godbout
You were probably aware of that but just in case, you may want to take a look at Worker Script: http://doc.qt.io/qt-5/qml-workerscript.html or other Qt multi threading: http://doc.qt.io/qt-5/threads-technologies.html We made a parallel QQmlEngine with it's own Qml objects tree and cloning or

Re: [Interest] Qml Flow max width

2015-11-03 Thread Jérôme Godbout
On 30 Oct 2015, at 18:00, Jérôme Godbout <jer...@bodycad.com> wrote: > > > > Hi, > > > > is their a way to adjust the width of a flow item to limit it to a > maximum width of parent width but if content is smaller use the > childrenRect.width without bind

[Interest] Qml Flow max width

2015-10-30 Thread Jérôme Godbout
Hi, is their a way to adjust the width of a flow item to limit it to a maximum width of parent width but if content is smaller use the childrenRect.width without binding loop or running into problem with the binding on the first children set that the width is set and the flow go into column

Re: [Interest] Qml Tooltips

2015-10-08 Thread Jérôme Godbout
Thanks you very much, it work very well. let's hope this Private API make it public some day with possible style customization. I can now remove the ugly z ordering of many component now, make the scripts way more clean. regards, Jerome On Thu, Oct 8, 2015 at 7:31 AM, Nicolas Kniebihler <

Re: [Interest] Infinte animation

2015-10-20 Thread Jérôme Godbout
Just an idea for a Timer based "solution" (more a workaround): you may want to use a Timer to trigger update event, where you could read the actual time and perform a delta by using javascript new Date() object and http://javascript.info/tutorial/datetime-functions#numeric-conversion-date-diff

[Interest] Qml Tooltips

2015-10-07 Thread Jérôme Godbout
Hi, Anybody have a good way to create floating tooltips above all items. I have some problem to make the tooltips part of an encapsulated Component appear behind parent sibling (and other parent of parent, ...). I have to adjust the Z manually and dynamicaly to end up with the proper results.

Re: [Interest] Qml Tooltips

2015-10-09 Thread Jérôme Godbout
rue; } Timer { id: timer_ running: component.content interval: 750 onTriggered: component.display() } } On Thu, Oct 8, 2015 at 10:17 AM, Jérôme Godbout <jer...@bodycad.com> wrote: > Thanks you very much, it work very well. > > let's hope this Private API make it public some day w

[Interest] Screen capture in fullscreen under Windows

2015-07-08 Thread Jérôme Godbout
Hi, I'm trying to capture some video for demo and training purpose, but I cannot get the screen capture for any third party apps to work while my application is in fullscreen (under Windows 7). We use a QMainWindow with QQuickView inside it. I end up with the first frame captured and if like

Re: [Interest] Screen capture in fullscreen under Windows

2015-07-08 Thread Jérôme Godbout
Another interesting fact, printscreen too doesn't work while application is in fullscreen. On Wed, Jul 8, 2015 at 11:07 AM, Jérôme Godbout jer...@bodycad.com wrote: Hi, I'm trying to capture some video for demo and training purpose, but I cannot get the screen capture for any third party apps

Re: [Interest] Screen capture in fullscreen under Windows

2015-07-08 Thread Jérôme Godbout
Godbout jer...@bodycad.com wrote: Another interesting fact, printscreen too doesn't work while application is in fullscreen. On Wed, Jul 8, 2015 at 11:07 AM, Jérôme Godbout jer...@bodycad.com wrote: Hi, I'm trying to capture some video for demo and training purpose, but I cannot get

[Interest] Qml Relative path and Current Working dir changed

2015-08-26 Thread Jérôme Godbout
Hi, I have a component that fetch some files with a relative path to the current working directory. I would like to be notified when the current working directory changed to reload the new files based on that. Is there a way to have a signal or something for a a binding that reevaluate itself?

[Interest] Qml Drag n Drop Custom QQuickItem

2015-09-02 Thread Jérôme Godbout
Hi, I'm trying to add behaviors for drag n drop on a custom QQuickItem in C++ from Qml. I have use inside the C++ part: setFlags(ItemAcceptsDrops); into the custom QQuickItem constructor. I now receive event into custom handler: dragEnterEvent(QDragEnterEvent* event) inside the overload

Re: [Interest] Qml Drag n Drop Custom QQuickItem

2015-09-03 Thread Jérôme Godbout
On Wed, Sep 2, 2015 at 1:06 PM, Jérôme Godbout <jer...@bodycad.com> wrote: > Hi, > I'm trying to add behaviors for drag n drop on a custom QQuickItem in C++ > from Qml. > > I have use inside the C++ part: > setFlags(ItemAcceptsDrops); > into the custom QQuickItem con

[Interest] Qml javascript super keyword

2015-09-16 Thread Jérôme Godbout
Hi, anybody know if there's a way to have the *super* keyword (ES6 specification) equivalent into a qml script? I have seen the signal workaround (see link below), but sadly this does not get reevaluated like functions parameters, it only get called once which is not correct with what I want to

Re: [Interest] Video Recording of QQuickView

2015-09-21 Thread Jérôme Godbout
Thanks, this is what I was thinking, anybody have test the https://code.google.com/p/qtffmpegwrapper/ does it still work? haven't been updated in a while. On Mon, Sep 21, 2015 at 6:50 AM, Lopes Yoann <yoann.lo...@theqtcompany.com> wrote: > > On 18 Sep 2015, at 21:55, Jérôme

[Interest] Video Recording of QQuickView

2015-09-18 Thread Jérôme Godbout
Hi, I have a built-in screen capture that use the QQuickView::grabWindow() function inside my Qml application. I was wondering is there a way to perform a video recording of the content? Do I have to take many images and create a video manually or there's something possible to generate a

Re: [Interest] Import C++ types to Javascript

2015-12-01 Thread Jérôme Godbout
; > *Sent:* Tuesday, December 01, 2015 at 9:25 AM > > *From:* "Jason H" <jh...@gmx.com> > *To:* "Jason H" <jh...@gmx.com> > *Cc:* "Jérôme Godbout" <jer...@bodycad.com>, interest < > interest@qt-project.org> > *Subject:* Re: [Int

Re: [Interest] QML and ScrollView

2015-12-04 Thread Jérôme Godbout
What you may want to try is something similar to this, note the parent of GridLayout is a flickarable item and not the scrollview, this flickerable does'nt have any size it take the children size, so you need to bind to scrollview sizing to resize the width properly: Item { id: component width:

[Interest] Qt 5.6+ WebView

2015-12-09 Thread Jérôme Godbout
Hi, I have a question, I known that WebKit will no more be part of Qt, but I was woundering what will happen with WebView into Qml? - will it be removed? - Do we have to compile WebKit on the side to make it work? - Is it Chromium that replace it? I'm trying to plan what to do with it,

[Interest] MenuContentItem.qml Acccessible is not defined

2015-12-09 Thread Jérôme Godbout
Hi, We are trying to move to Qt 5.5 (were in Qt5.3.0 before). We are creating our own style and replacing the Controls style and I end up with this error: Qt55/msvc2015_64_opengl/qml/QtQuick/Controls/Private/MenuContentItem.qml:178: ReferenceError: Acccessible is not defined This is weird, since

[Interest] Qml extend basic types methods

2015-12-04 Thread Jérôme Godbout
Hi, anybody known if and how it is possible to extends the available methods to Qt.vector3d, Qt.vector2d, Qt.vector4d... and the like. Maybe like in javascript we can do: String.prototype.myCustomMethod = function(str) { ... } We are refactoring code, we had all this function into a Qml

Re: [Interest] QML and ScrollView

2015-12-03 Thread Jérôme Godbout
Not sure but may worth a try, your scrollview anchors must be fighting your height, try to only anchors left and right instead of fill. This may not solve your problemes but could save you a warning at least. > On Dec 3, 2015, at 7:07 PM, Mike Jackson wrote: > > I am

Re: [Interest] Unable to determine callable overload.

2015-12-15 Thread Jérôme Godbout
if you provide: hashFile(QCryptographicHash::Algorithm,QString,bool=true) you must delete the hashFile(QCryptographicHash::Algorithm,QString) since the follwoing call will be confused and could be either method: hashFile(myAlgo, "my string"); handle the default case into the default value for

Re: [Interest] Import C++ types to Javascript

2015-11-28 Thread Jérôme Godbout
ber 2015 at 02:21:06 > From: "Jérôme Godbout" <jer...@bodycad.com> > To: "Jason H" <jh...@gmx.com> > Subject: Re: [Interest] Import C++ types to Javascript > If your object is not a singleton you will need to create an instance to call > th

Re: [Interest] Import C++ types to Javascript

2015-11-27 Thread Jérôme Godbout
I just checked, it is a slot. I just feel like I'm missing something. Do I > need to make a instance? > var instance = new MyLib.Hash() ? > var hash = instance.sha1("data") > > >> Sent: Friday, November 27, 2015 at 7:50 PM >> From: "Jérôme Godbout" <jer

[Interest] [Qml][Item][Node] Determine if Item is rendered

2016-06-07 Thread Jérôme Godbout
Hi, I looking for a way to know if an Qml Item is rendered, we are reparenting some Item to display or not some Item Tree. Concret we swap between parent null and by parent of the rendering scene container. This allow to know only the part we are currently displaying, the others parentless Item

Re: [Interest] Detecting if the application is already running from another user account

2016-06-03 Thread Jérôme Godbout
What about a pid file, check if process still alive, no matter the user that should work. On Fri, Jun 3, 2016 at 9:14 AM, Nye wrote: > Hello, > Yes, you are correct, I forgot all about that although I was thinking more > of a platform-specific solution. Also the class is

Re: [Interest] [Qml][Item][Node] Determine if Item is rendered

2016-06-08 Thread Jérôme Godbout
only workaround is to let the Qml item's user to tell you which > part is visible and then your quick item change its nodes dynamically. > > > On Wed, Jun 8, 2016 at 4:44 AM, Jérôme Godbout <jer...@bodycad.com> wrote: > >> Hi, >> I looking for a way to know if an

Re: [Interest] Advanced QString::arg overloads from QML?

2016-05-30 Thread Jérôme Godbout
You may want to convert the number from javascript before setting the arg: Int: myIntValue.toString(10) Float: myFloatValue.toFixed(2) myFloatValue.toPrecision(6) For leading 0 on 16 value: ("000" + myIntValue.toString(10)).substr(-16) Jerome On Sun, May 29, 2016 at 6:36 AM, Elvis

Re: [Interest] QtQuick compiler

2016-06-15 Thread Jérôme Godbout
I only have seen (blog post) it as part of 5.8 (due in october). I may be wrong. https://blog.qt.io/blog/2016/02/22/qt-roadmap-for-2016/ On Wed, Jun 15, 2016 at 8:42 AM, Xavier Bigand wrote: > I thought that the QtQuick compiler is now available with the open source

Re: [Interest] [Windows][opengl] How graphic card is choosen on a portable computer with many?

2016-06-22 Thread Jérôme Godbout
o games are doing to be always launched on the > right card. > > > 2016-06-22 21:25 GMT+02:00 Jérôme Godbout <jer...@bodycad.com>: > >> I don't think you can select this before the aplication is launch, it's >> Windows and the video driver that choose that fo

Re: [Interest] Multiple QML WebEngineView instances on one QQmlEngine

2016-01-28 Thread Jérôme Godbout
Hi, Not sure if this is related, but take care, object are related to a single QQmlEngine and cannot be used inside another one. One thing to consider is singleton in qml, they are created only once and belong to the first engine that request it, other QQmlEngine will fail when using them. In C++

Re: [Interest] Mac OS X Exit Dock Action

2016-01-20 Thread Jérôme Godbout
Hi, If you have a QCoreApplication or any derivated class, you could hook yourself on the following signal: QCoreApplication::aboutToQuit() or could use the following on QMainWindow: http://doc.qt.io/qt-5/qwidget.html#closeEvent The latter allow you to catch the event and interrupt it if needed

Re: [Interest] QML id property to string?

2016-03-10 Thread Jérôme Godbout
You can create a C++ method for this, expose it into a C++ singleton to easily access it: Q_INVOKABLE QString MySingleton::idName(QObject * object) const { const auto context = qmlContext(object); return context ? context->nameForObject(object): QString("context not found"); }

Re: [Interest] QML id property to string?

2016-03-10 Thread Jérôme Godbout
case QQmlEngine::JavaScriptOwnership: return QString("JavaScriptOwnership"); default: break; } return QString("error"); } On Thu, Mar 10, 2016 at 1:07 PM, Jérôme Godbout <jer...@bodycad.com> wrote: > You can create a C++ method for this, expose it into a C++ singleton t

Re: [Interest] QML id property to string?

2016-03-10 Thread Jérôme Godbout
ent:* Thursday, March 10, 2016 at 1:10 PM > *From:* "Jérôme Godbout" <jer...@bodycad.com> > *To:* "Jason H" <jh...@gmx.com> > *Cc:* "Dmitry Volosnykh" <dmitry.volosn...@gmail.com>, " > interest@qt-project.org" <interest@qt-proj

Re: [Interest] [Qt Labs Controls 5.6] Customization recommendations

2016-03-11 Thread Jérôme Godbout
Sorry don't want to hijack the thread, but I just watched the video, that's a great news that Qt is heading that way, we have many styles created and it's painful to maintain and size them properly in every case. I'm super happy about that feature coming. Is this will replace the full Controls

Re: [Interest] Return value from QProcess

2016-04-06 Thread Jérôme Godbout
You should use a more complete bash command that perform the insert mod, not an actual command but just the raw idea here: if [[ $(lsmod | grep "Profibus") != "ProfileBus" ]]; then insmod Profibus fi Maybe you should check with modprobe to check if the -i or -f flag can help you to get proper

Re: [Interest] Qml singleton fail to load

2016-04-12 Thread Jérôme Godbout
l hang > <https://bugreports.qt.io/browse/QTBUG-49370> > > > On 12 April 2016 at 23:14, Jérôme Godbout <jer...@bodycad.com> wrote: > >> I will answer my own question: It seem if the singleton is part of module >> A it cannot import module A or plugin A. It create a sile

[Interest] Qml singleton fail to load

2016-04-12 Thread Jérôme Godbout
Hi, I encounter a problem with one of my singleton written into Qml. If I remove the *pragma Singleton* from the component and the *singleton* from qmldir I can use the component properly without any trouble. But if I put them back and try to launch the application the engine does not load

Re: [Interest] Qml singleton fail to load

2016-04-12 Thread Jérôme Godbout
at 11:11 AM, Jérôme Godbout <jer...@bodycad.com> wrote: > Hi, > I encounter a problem with one of my singleton written into Qml. If I > remove the *pragma Singleton* from the component and the *singleton* from > qmldir I can use the component properly without any trouble. > B

  1   2   3   4   >