Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Browsing index pages (4972 articles)
↧

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 Article


Injecting Qml Objects created in c++ into existing Qml Elements

Hi, Did you setParentItem [doc.qt.io] to ChildItem ?

View Article


Model / 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 Article

Image 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 Article

Injecting 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 Article


Very 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 Article

calling 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 Article

how 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 Article


Disable Delegate's MouseArea until ViewTransitions have finished

No need for that just bind the runnig property. ListView { ... delegate: Rectangle {    ...    MouseArea {        anchors.fill:...

View Article


really 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 Article

Image display in QML c++

Yeah so my previous suggestions are a possible solution.

View Article

really 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 Article

Disable 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 Article


how 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 Article

How 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 Article


really 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 Article

Disable 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 Article


QML TableView vertical scrollbar not shown. It it bug or not?

Hi, It seems to be this QTBUG-34344 [bugreports.qt.io].

View Article

QQmlApplicationEngine failed to load component qrc:/main.qml: Invalid...

Hi, Have you renamed the Squircle class to MainScreen ?

View Article

QQmlApplicationEngine 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
Browsing index pages (4972 articles)


Latest Images