could not load qml file on Deployment on Android Device
You can try adding the import path explicitely with QQmlEngine::addImportPath(assets:/…). Just to be sure.
View ArticleChange a QML state from a model role
Hello and welcome to devnet, yes it is possible to pass a string from Cpp to QML using a Model(It also works without a model), let me provide you an example: main.cpp #include...
View ArticleHow to implement a component with swappable subcomponents?
Screenshot of my application for context: On the right, I’m going to have some sort of inspector that will let me edit the selected node. I want to develop something similar to Unity3D’s inspector. The...
View ArticleThere is any way to move a SplashScreen Window in desktop env?
thanks onek24 unfortunately i don’t use cpp. i want to implement it in QML. but this is a good idea thanks again
View ArticleHow to implement a component with swappable subcomponents?
Hi, TabView/StackView (QML) or QTabWidget/QStackedWidget (C++) are created for this purpose. Also read up on Layouts — they help you to arrange components, and you can add/remove components dynamically.
View ArticleComboBoxStyle Custom Popup/Drop-down List
Hey, it should be possible if you overwrite the internal component properties. Currently searching for the right ones, but i can’t find them.
View ArticleDrap and Drop pixmap support?
Hey, whats your purpose for the drag and drop? You can use the Drag of the MouseArea. If you want to drop it to fixed positions, you’ll have to write your own function(s) for that. I found an example...
View Article[Solved]Component global position
Hello, is it possible to get the position of a component relative to the top-level component ? I couldn’t find a function for that so far. Looks like i misunderstood the usage of the functions...
View ArticleStackViewDelegate getTransition
The property string transitionType is defined in it’s parent, so just access it that way: function getTransition(properties) ...
View ArticleIssues with using object.destroy()
Hello, I am trying to implement a Reset button such that when the user clicks ‘Reset’, I dynamically create a QML file using the method shown here: Dynamic Object Management [qt-project.org] This...
View ArticleIssues with using object.destroy()
also, the reset button which creates this confirmation box is the only thing I can’t click to elicit a ‘console.log(“fsdafa”)’ line after I click ‘No’ and destroy the box. The other menu options still...
View ArticleModifying text value inside qml
Hello all, I am starting a very simple application that aims at displaying in a window the letter that has been typed on the keyboard. For the moment the code look like this : import QtQuick 2.0...
View ArticleModifying text value inside qml
So if i understand well, there is a keyboard handler somewhere hidden Well, yes. Keys is also just a Component like Rectangle and MouseArea. You can also try to write it like that … Keys { }...
View ArticleCreating a custom-drawn component
I’m experimenting with Qt Quick to create a desktop application that does some audio processing. The audio processing will be implemented in C++, and I’d like to be able to update the drawing of the...
View ArticleFocus problems making a custom spinner
I’m sorry if my terminology is wrong or I’m way off, I’m quite new to QML. I’m looking to make a little GUI with QML to change some database entries. One type of value needs a simple spinner that...
View Article[Solved] Change style property of QML element over event
I have a component which displays a custom combo box: Column { anchors.top: parent.top ...
View Article[Solved] Change style property of QML element over event
You’re welcome, i’m glad that i could help you.
View ArticleXMLHttpRequest -> timeout and ontimeout doesnt work
I use the XMLHttpRequest in my QtQuick app in order to access a rest service. I’d like to react to the situation, if the rest service is gone. So I tried to use timeout and ontimeout to abort the...
View ArticleXMLHttpRequest -> timeout and ontimeout doesnt work
Unfortunately your list doesnt help. If others have the same problem, my current workaround is to use a Timer after every request and check if a variable has been touched until the Timer is triggered.
View Articlevisible area of an children Rectangle
Hello, i trying for hours now ^^ can u help me in my problem ? transleted in a simple application: import QtQuick 1.1 Rectangle { width: 360 ...
View Article