Model / View update efficiency in QML?
Hi, Part of it depends on how you send the information about what you have changed. I’ve typically saw code where rather that calculating the right dataChanged range some developer where sending the...
View ArticleInjecting Qml Objects created in c++ into existing Qml Elements
Hi, Did you setParentItem [doc.qt.io] to ChildItem ?
View ArticleModel / View update efficiency in QML?
I am noticing something odd – making changes to a C++ model takes as much time to update the UI representation of the model as entirely resetting the model. This leads me to assume model / view...
View ArticleImage display in QML c++
I’m just thinking out loud but my approach to this would be to set the Image{} source property to point to something like m.currentSource. Then of course your C++ class must have a Q_PROPERTY of...
View ArticleInjecting Qml Objects created in c++ into existing Qml Elements
Hello, I created a C++ app with a QQuickView like this QQuickView view; view.setSource(QUrl::fromLocalFile("MainItem.qml")); view.show(); MainItem.qml import QtQuick 2.3 ...
View ArticleVery strange/bugged SplitView behavior
Hi, I’m using a SplitView like this: import QtQuick 2.4 import QtQuick.Controls 1.3 import QtQuick.Layouts 1.1 Rectangle { id: root width: 600...
View Articlecalling setContextProperty() multiple times with same name
Hi, I’m working on an entity-component based application. Basically an entity is a list of components and a component is just an object which has some simple data (ints, strings, floats,…). I have a...
View Articlehow to correct use QtConcurrent::run
Hi, I’ve tried this but no luck. Maybe you have few examples how to use QtConcurrent::run and worker?
View ArticleDisable Delegate's MouseArea until ViewTransitions have finished
No need for that just bind the runnig property. ListView { ... delegate: Rectangle { ... MouseArea { anchors.fill:...
View Articlereally slow eval() on large data object
Hi, For now the only reasonable solution is to use QScriptEngine::evaluate, which does the parsing almost instantly, but as I understand that is the old engine and I don’t want an extra...
View Articlereally slow eval() on large data object
Hmmm u can use a man in the middle :) Create a little service with PHP or nodeJS that grab the response from your main service and let your helper service do the heavy work.
View ArticleDisable Delegate's MouseArea until ViewTransitions have finished
Hi, One way would be to enable/disable the MouseArea in onRunningChanged handler or bind that Transition’s running to that of MouseArea’s enabled. Can I even access a delegate’s properties from the...
View Articlehow to correct use QtConcurrent::run
Hi everyone! In my project I need to call method which open big file, unzip content, decode using AES and parse JSON structure. In result this method should return QObject list with file structure. My...
View ArticleHow does QtQuick Scene Graph calculate the OpenGL z-value for a node?
I have been digging though the documentation for Scene Graph, and I cannot find out how the z-value (I.E. z in 3d space NOT Item::z) for each item is made unique and kept in order. I think the...
View Articlereally slow eval() on large data object
Hi, I’ve got a project where I need to download data from service, which returns data in javascript object string, which normally would be evaluated using eval(). I’ve got no way to change that service...
View ArticleDisable Delegate's MouseArea until ViewTransitions have finished
Hi, One way would be to enable/disable the MouseArea in onRunningChanged handler or bind that Transition’s running to that of MouseArea’s enabled.
View ArticleQML TableView vertical scrollbar not shown. It it bug or not?
Hi, It seems to be this QTBUG-34344 [bugreports.qt.io].
View ArticleQQmlApplicationEngine failed to load component qrc:/main.qml: Invalid...
Hi, Have you renamed the Squircle class to MainScreen ?
View ArticleQQmlApplicationEngine failed to load component qrc:/main.qml: Invalid...
Given my thoughts below am I barking up the wrong tree? Or provided the information below am I misusing the API to get the error in the title? I am trying to modify the sample at...
View Article