How to iterate for each element of collection
Hi I would probably do something like GridView{ id: myGridView anchors.fill: myBoard model: boardModel ...
View ArticleReference error: id is not defined
Hi customerId is within a Tab (which inherits from Loader), so it’s not possible to use customerId to refere to the element from outside the Tab/Loader using customerId. You can look here [doc.qt.io]...
View Articlec++ QML Wrappers wise or not
Hi everyone and happy new year, Using Qt5.2/3. I would like to use some QObject derived classes in QML.The obvious and certainly easiest thing is to register the types with qmlRegisterType and add...
View Articlec++ QML Wrappers wise or not
Hi, So in QML, we use the Network object as a prototypes orinherit from this to modify the behaviour such as changing the message method.. e.g. import myapi Network { id:...
View Articlemissing parent in hierarchical qml files - StackView component (tutorial: Qt...
Sorry for the noob question, I just cannot figure it out :) in the tutorial : https://developer.qtcloudservices.com/mar/tutorials/todo they use parenting to create the hierarchy of qml edits. Opening...
View ArticleHow to create C++ object dynamically from within QML?
@Dheerendra, Yeah that’s exactly how I’m doing now. That way wraps the C++ type in a QML type, and then I create the QML type dynamically, like your sample code does. My original question was...
View Articlec++ QML Wrappers wise or not
If you write a signal in your Network c++ class and emit it doesn’t solve your problem? class Network : public QObject { public: Q_OBJECT public: ...
View Articlepass data between qtquick controls (slider) and C++ application
Hello forum, I did not get much of a response from my last post. I believe that I did not explain the issue well enough. Let me try again. Consider the following class structures: class A : public...
View Articlemissing parent in hierarchical qml files - StackView component (tutorial: Qt...
Correct. but if I “ignore” the errors, the UI is scrambled and unusable. I suppose they use ‘default’ values to replace the parent’s ones.
View Articleqml table view
QML’s TableView is documented at http://doc.qt.io/qt-5/qml-qtquick-controls-tableview.html ; or is the question more about using it with a C++ component as Model? (In which case see...
View ArticleQt Quick Button' hovered is true event if it's disabled
Hello, I encountered an anoying problem with Qt Quick Button. I set the button to “enabled: false” But sometimes, I hovered my mouse on it, the value of “hovered” is still true. I don’t know it is a...
View ArticleHow to create C++ object dynamically from within QML?
You can’t directly create object directly in QML like new MyClass. It needs to be treated like QML elements. You can try with other idea given by the previous post as well.
View ArticleQt Quick Button' hovered is true event if it's disabled
Well I was not able to produce the “Binding Loop” error from above code. But it could possibly be due to the same.
View ArticleCrazy memory usage with TableView :(
I am afraid a TableView in QML can never directly compare with the raw performance of a widget item view. The main reason for this is that the technologies are vastly different. Unlike a widget item...
View Articleanimating a dynamically created qml component
Good morning, I’m doing a custom table view object in C++. It’s working but I’d like to improve how it’s displayed. I created a component with animations attached to it. It creates the component and it...
View ArticleCannot resolve local file url
I’m trying to load an external QML file dynamically. The following code works when I use a FileDialog to resolve the path: var Url = fileDialog.fileUrl; console.log(Url.toString()); // qml:...
View ArticleCannot resolve local file url
I had tried that, but it didn’t help: var sFilePath = "C:/Templates/benchmark.qml"; var sUrl = "file:///C:/Templates/benchmark.qml"; templateLoader.source =...
View ArticleQt Quick Button' hovered is true event if it's disabled
Well, I will reproduce the problem for clearer description on bug tracker. Anyways, thank you very much for your help!
View Articleanimating a dynamically created qml component
Hi, From the Docs here [doc.qt.io] You should always use QObject::setProperty(), QQmlProperty or QMetaProperty::write() to change a QML property value, to ensure the QML engine is made aware of the...
View Article