Re: [Interest] [Quick Controls 2] Best way to add binding arrow tip to Popup?

2016-10-06 Thread Jérôme Godbout
More a workaround then a real solution, but could work as long as the triangle is still sharp 90 angle. Item { id: component property real sizing: 10 property alias color: rect_.color property alias border: rect_.border width: sizing height: sizing clip: true Rectangle {

Re: [Interest] QMetaType create

2016-10-06 Thread Jérôme Godbout
<>qMetaTypeConstructHelper(const MyClass* t) The later should be used when the first cannot be done, since your creation will now depend on knowing each of those class now and include all of them to compile (killing the point of it in the first place). On Thu, Oct 6, 2016 at 9:24 AM, Jérôme Godbou

Re: [Interest] QMetaType create

2016-10-06 Thread Jérôme Godbout
Yeah you're right, the ctor executed during the call is indeed a pointer type (8 bytes, 64 bits platform). Thanks for the pointer, punt intended ;-) Jerome On Wed, Oct 5, 2016 at 11:42 PM, Konstantin Shegunov <kshegu...@gmail.com> wrote: > On Wed, Oct 5, 2016 at 11:42 PM, Jérôme God

[Interest] QMetaType create

2016-10-05 Thread Jérôme Godbout
Hi, I was looking for a way to create object dynamicaly out of a classname. I have the classname which I can convert properly to QMetaType. If the constructor is Q_INVOKABLE I can use the QMetaObject to create a newInstance() and this work properly into the example. But when this doesn't work,

Re: [Interest] What don't you like about Qt?

2016-09-20 Thread Jérôme Godbout
on C++ enum value easily On Mon, Sep 19, 2016 at 4:03 PM, Jérôme Godbout <jer...@bodycad.com> wrote: > For myself I would love to see those changes (mostly to Qml, the C++ part > is fairly striaght forward and we mostly no more used QWidgets): > > >1. Ability to extend o

Re: [Interest] QML Values to enum name

2016-09-20 Thread Jérôme Godbout
We personnaly expose another property into those case (in your WebSockets C++ class): Q_PROPERTY(QVarianMap enumToStringMap READ enum_to_string CONST); QVarianMap WebSockets::enum_to_string() { return QVariantMap { std::make_pair(WebSockets::Connecting, QString("Connecting"))

Re: [Interest] What don't you like about Qt?

2016-09-19 Thread Jérôme Godbout
For myself I would love to see those changes (mostly to Qml, the C++ part is fairly striaght forward and we mostly no more used QWidgets): 1. Ability to extend or declare basic type into Qml (not only QObject), QQuaternion QMatrix4x4 functions are too limited and it's painful to have a

Re: [Interest] Is Qt/QML suitable for me?

2016-08-30 Thread Jérôme Godbout
As far as I know, PyQt5 is available for Android, but not PyQt4. Anyway if you want to do some Qml, I strongly suggest Qt5 and the lastest especially if you start a new project. JS can acheive as much with many porting, since the Qml JS engine have a few particularity on it's own. But no it

Re: [Interest] Is Qt/QML suitable for me?

2016-08-30 Thread Jérôme Godbout
If you are not too familiar with C++, you may want to give a PyQt a look, this is less overwhelming and for simple application Python can easily handle it, you will also have a out of the box support for your SQLite and many other features you want to implement. This is if you really want to have

[Interest] [Qml] Best way to detect unnecessary import

2016-08-25 Thread Jérôme Godbout
Hi, is their a good way to detect unnecessary import into Qml script? we did many modules and refactor, as any good developer we would like to keep the code as possible. I was think by doing a walker on every script file that load the file and try to remove each import to see if the Component

Re: [Interest] Force property's binding to be executed from C++

2016-08-23 Thread Jérôme Godbout
as many as you want, make a folder file observer and can even detected them and add them to the GUI theme selection (this is what I do for my apps and it work like a charm). On Tue, Aug 23, 2016 at 6:11 PM, Jérôme Godbout <jer...@bodycad.com> wrote: > Hi, > You can retreive the properties

Re: [Interest] Force property's binding to be executed from C++

2016-08-23 Thread Jérôme Godbout
Hi, You can retreive the properties changed from meta information of those properties on you object. I'm not sure I understand your use case but here's some info that may help. auto meta_obj = target_object_->metaObject(); for(int i = 0; i < meta_obj.propertyCount(); ++i) { auto meta_property

Re: [Interest] DelegateModel: Dynamic Delegate Model groups

2016-07-27 Thread Jérôme Godbout
ecipientComponent.createObject(recipientComponent, > {includeByDefault: false, name: number}); > > I don't know how I can more strongly type that. I'd expect Qt to > internally try to promote it and succeed. > *Sent:* Tuesday, July 26, 2016 at 1:43 PM > > *From:* "Jérôme Godbout"

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

2016-07-27 Thread Jérôme Godbout
I for one would rather have .length too, could avoid those nasty function call to make generic javascript functions: function getLength(obj) { if(obj.hasOwnProperty('length')) return obj.length; if(obj.hasOwnProperty('size')) return obj.size; if(obj.hasOwnProperty('count')) return

Re: [Interest] DelegateModel: Dynamic Delegate Model groups

2016-07-26 Thread Jérôme Godbout
> > (groups is a DelegateModel.group property, recipentModelGroups is a js > array of DelegateModelGroups). I think I'm trying to go the other way? Or > the QQmlListProperty is too tightly typed? > > > *Sent:* Tuesday, July 26, 2016 at 11:49 AM > *From:* "Jérôme Godb

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] Correct way of exposing enum list to QtQuick

2016-07-25 Thread Jérôme Godbout
If you have a list of int enum (which you should, manipulate the interger value and convert to string only to save/restore value and display to user options): objectOfMyClass.availaleValuesOfMyEnum.indexOf(parseIInt(objectOfMyClass.myEnumProperty)); // This should work If you want to have a

Re: [Interest] create delegate modelData

2016-07-19 Thread Jérôme Godbout
modelData is a variable set into the context of the created component. Therefore, it does not exist into the Repeater until the object is instanciated. It's the Repeater itself that create a new context based on it's context and push variables into the object instance context. 2 variables are set

Re: [Interest] Qml plugin which registers at the same time C++ items and Qml files from resources.

2016-07-12 Thread Jérôme Godbout
Sorry I don't know the way to solve this but I can explain why it does not work: *qmlRegisterType()* require a *QObject** derivated type to work, since the register type you provide is not that kind of object, it cannot work with a .js file. One thing I know that work is to add the whole resource

Re: [Interest] Problem with Loader loaded items showing

2016-06-30 Thread Jérôme Godbout
I think it's related to the value assigned after the Component is created. The behavior kick in before the initial -width is assigned. This is because the width is not computed before teh widget is rendered and width is known. There's a few thing to try: 1- You may try to set Behavior enabled:

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] 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] [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

[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] 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] [QT3D] transparencies

2016-05-20 Thread Jérôme Godbout
Transparency is always a bit tricky, having transparent object leave the blending to add background color to current fragment. The easy not so good is to render back object to the front. But since the order in which you render affect the final results you end up with transparency that may look

Re: [Interest] iOS style menubar?

2016-05-10 Thread Jérôme Godbout
The only way I got this working is by doing some ShaderEffect with a custom FragmentShader. That way you can control the alpha for each fragment and make whatever you want. Note, it's not a good idea to have too many of them but for some specific task it should be ok. If you only want to have 2

Re: [Interest] [Qml][type_id] Same component module have different type

2016-05-10 Thread Jérôme Godbout
a minimal example that we can run? > > > > *From:* Interest [mailto:interest-bounces+mitch.curtis= > qt...@qt-project.org] *On Behalf Of *Jérôme Godbout > *Sent:* Monday, 9 May 2016 8:18 PM > *To:* Interests Qt <interest@qt-project.org> > *Subject:* [Interest] [Q

Re: [Interest] Preferred way to create custom look-and-feel GUI

2016-05-10 Thread Jérôme Godbout
If you are not into an hurry, I would go Qt 5.6 and make sure you get the new way to put style on Items in mind:Qt Quick Controls 2 http://blog.qt.io/blog/2015/11/23/qt-quick-controls-re-engineered-status-update/ It should be part of Qt 5.7 So if you're not into an hurry and can work on the rest

[Interest] [Qml][type_id] Same component module have different type

2016-05-09 Thread Jérôme Godbout
Hi, I have encounter a problem where Qml refuse to set a property because the type doesn't match, but they are the same type but got a different type name and id: *Unable to assign PartVisibleModel_QMLTYPE_1066 to PartVisibleModel_QMLTYPE_331* So I guess I did something wrong with it and end up

Re: [Interest] Qt 5.6 crash in QV4::Value::as

2016-05-09 Thread Jérôme Godbout
I encountered a few of those, it crash during conversion when the input have bad data into it (no check seem to be made). Here, you seem to have a QVector4D with bad data (NaN probably) into it. Check and trace (console.log()) the signal before it send, you probably have something there that's

[Interest] [QML][C++][Context] change property into context

2016-05-05 Thread Jérôme Godbout
Hi, I would like to known if there's a way to efficiently change the value into a context and emit changed() signal without having setContextProperty() forcing whole context revaluation? Let say I have a special Repeater alike component that create and maintain expensive Object that add

Re: [Interest] Getting response from external web page

2016-05-02 Thread Jérôme Godbout
Hi, Just an idea, after you submit, does the web page change url? maybe you could change it if possible, that would help you know the submit is completed via urlChanged() signal. Not sure which version of Qt, but if you can move to qwebengineview http://doc.qt.io/qt-5/qwebengineview.html The web

Re: [Interest] Clean way to define and categorize constants in QML

2016-05-02 Thread Jérôme Godbout
Changed STORED false); ... }; Hope this help. On Sat, Apr 30, 2016 at 3:35 PM, Sina Dogru <sinado...@gmail.com> wrote: > > > 2016-04-29 21:34 GMT+03:00 Jérôme Godbout <jer...@bodycad.com>: > >> >> QmlObject >> { >> readonly property alias myCa

Re: [Interest] Clean way to define and categorize constants in QML

2016-04-29 Thread Jérôme Godbout
Note, you can also have to add the QObject* parent on the QmlObject. On Fri, Apr 29, 2016 at 2:34 PM, Jérôme Godbout <jer...@bodycad.com> wrote: > >1. You can do an Item as root object to put children. Annoying because >it get a lot of unused properties. >2. Or y

Re: [Interest] Clean way to define and categorize constants in QML

2016-04-29 Thread Jérôme Godbout
1. You can do an Item as root object to put children. Annoying because it get a lot of unused properties. 2. Or you can do your own QtObjectWithChildren from C++, which is just a QObject with children default property list of QObject*. (We did this and call them QmlObject) 3. Or

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

2016-04-27 Thread Jérôme Godbout
L called a C++ function which blocks it. But seems like engine keep > working while it suppose to block (tried on 5.6). > > Now I need to choose between "bouncing between QML and C++" or "breaking > in multiple functions". Thanks for helping and acquired a vision. >

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

2016-04-26 Thread Jérôme Godbout
; 2016-04-26 20:11 GMT+03:00 Jérôme Godbout <jer...@bodycad.com>: > >> We are mostly using QFileDialog and QMessageBox. Note the Qml type but >> the one from QtWidgets/QFileDialog >> >> *Q_INVOKABLE QString getSaveFileName(...); // .h* >> >&

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

2016-04-26 Thread Jérôme Godbout
le, > > 2016-04-26 15:39 GMT+03:00 Jérôme Godbout <jer...@bodycad.com>: > >> We also have expose those blocking C++ QMessageBox and QDialog for linear >> workflow via Q_INVOKABLE from C++ singleton. >> > > I might misunderstand, do you actually using QMessageBox

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

2016-04-26 Thread Jérôme Godbout
> > On Tue, Apr 26, 2016 at 3:39 PM Jérôme Godbout <jer...@bodycad.com> wrote: > >> We also have expose those blocking C++ QMessageBox and QDialog for linear >> workflow via Q_INVOKABLE from C++ singleton. This avoid the callback >> spaghetti mess of Qml Dialog a

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

2016-04-26 Thread Jérôme Godbout
not be requested, the declarative way is a nightmare. In fact I think we have 0 Qml Dialog into our 5 CAD applications, but many call to those C++ blocking dialog invoke. On Tue, Apr 26, 2016 at 8:34 AM, Jérôme Godbout <jer...@bodycad.com> wrote: > I can tell what we did, we made a FileSystem C++

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

2016-04-26 Thread Jérôme Godbout
I can tell what we did, we made a FileSystem C++ singleton that expose most file system file/url check, we made those check inside Qml javascript now. This way you can make callback and GUI logic into Qml. We expect C++ function to be call with valid argument all the time. Else we always return

Re: [Interest] Running Qt app in a browser

2016-04-25 Thread Jérôme Godbout
Not a full solution, but just a thought, you could use some sort of CGI script to call your Qt Application backend? For the Gui, I wonder if rendering the image into a texture or an image. Send the image to the client (delta compressed). Make the rendering into a canvas and apply changed. You

Re: [Interest] Preventing Multiple Instances of EXE

2016-04-22 Thread Jérôme Godbout
Take care which mecanism you use here, this get really annoying with some crashing application (not only they crash, but to refuse to launch again). To avoid this, simply use a pid file and check if the pid process still run, give option to your user to kill the previous instance of the program

Re: [Interest] [Qt][Qml] Using OpenGL CoreProfile status

2016-04-21 Thread Jérôme Godbout
Thanks Sean, this is roughly what I was expecting. If anybody have try the GraphicalEffects with core profiles I would love to have your inputs. Thanks again, Jerome On Thu, Apr 21, 2016 at 4:19 AM, Sean Harmer <sean.har...@kdab.com> wrote: > Hi, > > On Wednesday 20 April 2016

Re: [Interest] Qml Loader initial property setter

2016-04-13 Thread Jérôme Godbout
stead of a > function where it is much easier, then there should be a public and > QMetaType known type.Thats why seems like hard to make it possible. > > 2016-04-04 16:31 GMT+03:00 Jérôme Godbout <jer...@bodycad.com>: > >> Thanks for pointing this out, but I was aware of

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

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

[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] 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 Loader initial property setter

2016-04-01 Thread Jérôme Godbout
<shaan...@gmail.com> wrote: > Hi, > > Have you tried using the QML Binding Type? > http://doc.qt.io/qt-5/qml-qtqml-binding.html > > On Thu, Mar 24, 2016 at 11:11 PM, Jérôme Godbout <jer...@bodycad.com> > wrote: > >> Hi, >> >> I was wondering if I

Re: [Interest] Declaratively handle key presses / navigation differently depending on state (QML)

2016-03-31 Thread Jérôme Godbout
Just a thought, you may try the Qml Shortcut component: http://doc.qt.io/qt-5/qml-qtquick-shortcut.html Not sure about the Shortcut think, I haven't play around too much with it yet. Keep a model and the current index of the column and is edit mode. import QtQuick 2.4 import QtQuick.Window 2.2

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Jérôme Godbout
Stansvik <elvst...@gmail.com>: > >> 2016-03-30 16:55 GMT+02:00 Jérôme Godbout <jer...@bodycad.com>: >> >>> You may want to have them declared as list of object with the key as a >>> property of each entry, and build the map based on the list content. >>

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Jérôme Godbout
You may want to have them declared as list of object with the key as a property of each entry, and build the map based on the list content. ex: *// May have to change the list type here* *property list myScreens:* *[* * WelcomeScreen { property string keyName: 'welcome' }* * , OtherScreen

[Interest] Qml Loader initial property setter

2016-03-24 Thread Jérôme Godbout
Hi, I was wondering if I am the only one who found the initial property of a source based Loader Item a bit annoying. inline sourceComponent with Component {} declaration are well ok on the other hand. I'm explaining myself, when using a loader you have 2 choice to set the initial binding on

Re: [Interest] Canvas keeping artifacts

2016-03-24 Thread Jérôme Godbout
; > *Sent:* Thursday, March 24, 2016 at 9:42 AM > *From:* "Jason H" <jh...@gmx.com> > *To:* "Jérôme Godbout" <jer...@bodycad.com> > > *Cc:* "interest@qt-project.org Interest" <interest@qt-project.org> > *Subject:* Re: [Interest] Canvas

Re: [Interest] Canvas keeping artifacts

2016-03-23 Thread Jérôme Godbout
You may want to clear fill with blank transparency: ctx.fillStyle = 'rgba(0,0,0,0)'; ctx.clearRect(0,0,width,height); ctx.fill(); for me it did the trick. On Wed, Mar 23, 2016 at 4:54 PM, Jason H wrote: > I have a very simple pause button: > Canvas { >

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] 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] 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
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] Dynamic translations for mobile apps at runtime?

2016-03-04 Thread Jérôme Godbout
Just to be clear, the lupdate did not found the string and skip it, nothing new is found or updated. The usage after work properly. On Fri, Mar 4, 2016 at 9:06 AM, Jérôme Godbout <jer...@bodycad.com> wrote: > > "-tr-function-alias qsTr=MySingleton.myqsTr" > That's w

Re: [Interest] Dynamic translations for mobile apps at runtime?

2016-03-04 Thread Jérôme Godbout
*Sent:* Thursday, March 03, 2016 at 5:31 PM > *From:* "Jérôme Godbout" <jer...@bodycad.com> > *To:* "Julien Cugnière" <julien.cugni...@gmail.com> > *Cc:* "interest@qt-project.org" <interest@qt-project.org> > *Subject:* Re: [Interest]

Re: [Interest] Dynamic translations for mobile apps at runtime?

2016-03-03 Thread Jérôme Godbout
on into the RootItem of the QQuickView and hope the context hierarchies will always find it everywhere to see if this work. That's so close to work well... On Thu, Mar 3, 2016 at 3:41 PM, Jérôme Godbout <jer...@bodycad.com> wrote: > Nice, I didn't knew about "-tr-function-alias",

Re: [Interest] Dynamic translations for mobile apps at runtime?

2016-03-03 Thread Jérôme Godbout
at 2:37 PM, Julien Cugnière <julien.cugni...@gmail.com> wrote: > 2016-03-03 18:50 GMT+01:00 Jérôme Godbout <jer...@bodycad.com>: > > We did the same thing into Qml, we have a C++ singleton equivalent to > your > > backend, that select the current language files a

Re: [Interest] Dynamic translations for mobile apps at runtime?

2016-03-03 Thread Jérôme Godbout
We did the same thing into Qml, we have a C++ singleton equivalent to your backend, that select the current language files and emit the QString property changed. qsTr("String to convert") + I18n.revaluate I wish they made underlying hook to revaluate the qsTr() with a signal connected like if the

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] 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

[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

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] 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] 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] 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

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 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] 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

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

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 <

[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] 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

[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] 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 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

[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] 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] 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] 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] 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

[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

<    1   2   3   4   5   >