[Development] Fix potentially breaking binary compatibility, what can be done?
Hi, I've realized we had an issue in Qt3D Input where QMouseEvent and QWheelEvent' key modifiers property can only actually contain a single modifier value. I've made a change to fix this, essentially transforming an enum into a QFlag, like it should have been right from the start. The problem is that this is potentially affecting binary compatibility. What is the right way forward? The patch is here: https://codereview.qt-project.org/#/c/252493/ Thanks, -- Paul Lemire | paul.lem...@kdab.com | Senior Software Engineer KDAB (France) S.A.S., a KDAB Group company Tel: France +33 (0)4 90 84 08 53, http://www.kdab.fr KDAB - The Qt, C++ and OpenGL Experts smime.p7s Description: S/MIME Cryptographic Signature ___ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development
[Development] Qt3D git branch for VR experiments
Hi, Could we have a new branch on the Qt3D repository so that we can push our experiments with VR headsets? Thanks, Paul ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development
[Development] Nominating Antti Määttä as Qt3D approver
Hi I would like to propose the nomination of Antti Määttä for approver status. Antti has been contributing many patches to Qt3D adding new features and providing bug fixes. In addition, having another approver would be a great help to reduce the amount of time patches are spent awaiting a review. Thanks, Paul -- Paul Lemire | paul.lem...@kdab.com | Senior Software Engineer KDAB (France) S.A.S., a KDAB Group company Tel: France +33 (0)4 90 84 08 53, http://www.kdab.fr KDAB - The Qt, C++ and OpenGL Experts ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development
[Development] Copying QJSValue arrays
Hi guys, We're working on being able to set GLSL uniform arrays from QML. Basically what we have is a QParameter QObject exposed to QML as Parameter. It contains a QString name property and a QVariant value property. Here's how it can be used for scalar types. Parameter { name : uniformName; value : 1.0; } What we want is to send a copy of value to our backend renderer, so that we won't have any problem with threading. For scalar types, the copy is done implicitly. For array types, we'd like to be able to do something like that: property var myArray : [1.0, 1.0, 1.0] Parameter { name : uniformArray; value : myArray } However in that case, value is a QJSValue containing a JS Array object. We need a way to be able to copy that object. The tricky part there is that we can't check the QVariant to to see if it contains a QJSValue directly as we don't want to introduce a dependency to the QML module. We're thinking of maybe introducing a Qt.array helper function that would return us a copy of the array directly or retrieve a QVectorQVariant. If you've got ideas around that issue, please step in. Thanks, Paul Lemire ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development
[Development] Qt 5.2 Alpha possible issue with V4 and exposed Qml properties
Hello everyone, I've been working for quite some time on a Qt and QtQuick project and I tried the 5.2 alpha release as soon as it got out. However, my project which didn't have any issues running with any previous 5.* release of Qt now crashes with the alpha. My project is composed of a core application that load Qt plugins through shared libraries. Those shared libraries are C++ backend that are exposed to the Qml Engine so as to be used by a matching QtQuick object loaded by a QtQuick loader. Basically, foreach of my libraries I do : context-setContextProperty(library_name, library_intance); and each library has a associated qml file that is loaded through a loader and can then call the backend as it has been exposed to the Qml Engine (using library_name.my_method). This C++ backend is mainly used to access web services, sql storage and manipulate ListModels (a custom subclass of QAbstractListModel) which are then shown with QtQuick ListView(s). After debugging for quite some time, it appears that when one of those libraries tries to access and manipulate a ListModel that is bound to a qml ListView or Repeater, it produces a SIGSEGV. Debugging with gdb, I found out that from one call to another my model instance would suddenly be marked as inacessible for no obvious reason. On a side note, those models are not registered as qml properties but are returned as QObject* in a Q_INVOKABLE methods of the backend. If I want to use the model in a ListView, I then do : ListView { model : library_name.getMyModel(); } I suspect this might be coming from the new V4 engine but I've been looking at JIRA and so far no one as a similar issue. I see several qv4methods in the stack calls preceding the segfault so as V4 is making its debuts with the alpha I can't help but think the issue as something to do with it... Anyway I cannot submit a bug report yet as I don't really know what the issue is. I'd be happy to hear your advice if any of you has encountered some strange behavior like this one with the 5.2 alpha releases Thanks and have a nice week end Paul Lemire ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development
[Development] Missing features in Quick3D
Hi, I've been working and solving some Qt3D bugs on my own for the past few months. During that time I've found some important features to be missing. I'm talking more specifically about the Qml bindings of Qt3D, Quick3D rather than Qt3D itself. First of all, being able to render a QQ2 UI on Item3D's meshes would be marvellous. I've tried to implement this but everytime I take a different approach I end up at the same point. It seems to be the topic of this bug QTBUG-19902. What I tried to do is to render a QQuickItem in a FBO. This is basically what the QQuickShaderEffectSource element in QQ2 is doing. Unfortunately it uses a QSGRenderer which is not available in the public API. Maybe there is another way to do it but I don't see it. Having the FBO, it could then easily be used in a QQuickEffect item to be mapped on an Item3D's mesh. Moreover, Quick3D rendering is done before the QQ2 scenegraph rendering which might be another issue as the fbo binded on the mesh would not have been filled yet. There is also a chance mouse coordinates on the QQ2 textured UI might not be mapped properly if at all. Another missing feature is that there is no way to move an Item3D in space. I've played with Qt3D and added a signal onHoverMove available in Qml with the corresponding x and y window coordinates of the mouse. As there is no way to unproject the mouse coordinates to get the them in object space (using gluUnProject or something similar), I once again don't see how to do it. By the way sorry if this is not the right place to post, I'm quite confused between the forum, the bug tracker and the mailing list. Good day everyone, Paul Lemire ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development