breaking up QML into different files.
Are you using absolute path or relative path? Be also aware which qml file is loading the other qml file. I have encountered this problem sometimes, you find the file using Qt Creator, but when you are...
View ArticleListView, delegate; strange behaviour after repaint
Hi, Qt 4.8/QML I have a ListView with a delegate and model. In the delegate defintion: color : “#FF0000” onclick turns the color to green (color = “#00FF00”). Next click back to red. All works fine,...
View Articlestart animation when app loaded
How can I start an animation when a app is first run. I can start animations with a mousearea or onClicked but I can’t get an animation to run when I first launch the app
View ArticleProgram crash when I combine Loader and ProgressBar
When I use Loader to load my own component and change the value of the ProgressBar through it the program always crash;If I don’t use Loader to load my own component, the program wouldn’t crash, why?...
View Article[Solved]Can't connect the signal to the value of the ProgressBar(would crash)
You’re welcome :) Yeah, the “best” code architecture can be different for different purposes. I don’t have any direct ideas for now, sorry. But keep learning and asking. Good luck!
View Articlestart animation when app loaded
You can use: Component.onCompleted: { animation.start() }
View ArticleExtract Context Properties from C++ Code
We have a set of external variables that will be available in QML via the setContextProperty() and the Q_Property Makro. We have a situation involving possibly thousands of variables that could...
View ArticleExtract Context Properties from C++ Code
OK. Parsing the QML is an option, but probably too cumbersome. You would need to do it before loading the QML. Once you load it, it will throw errors on properties that were not included, which is not...
View ArticleListView, delegate; strange behaviour after repaint
Sorry, I wasn’t clear. The delegates cannot be stored (they’re managed by the listview). But state-information associated with a delegate could be stored. pseudocode below: Item { ...
View ArticleProgram crash when I combine Loader and ProgressBar
I only looked at it briefly, but that looks like a bug. Please file a bug report on bugreports.qt-project.org with a minimal example and that stacktrace. Thanks, Chris.
View ArticleGrowing a Rectangle "leftwards" or "upwards"
Hi all, My large window contains a medium-sized Rectangle in the middle. This Rectangle contains several small graphical items in arbitrary positions. I’d like to change the size of this outer...
View ArticleHow to pass 'QVariantMap' object of QVariantList from one .qml to another.qml...
We have ‘handler’ object which is been sent to qml using viewer.engine()->rootContext()->setContextProperty(“handler”, &handler); in main.cpp main.qml is able to make use of...
View ArticleI want a Date Picker for my app ?
Hi, i want to use a Date Picker in my QtQuick app so is there a ready solution for that ? Actually i’m using three spin boxes so if there is no solution for the date picker can i then optimize the spin...
View ArticleQtQuick need something to work?
I am using qt 5.1 and qt5.1.1 with windows7. Someone knows how to solve? Starting C:\Qt\Qt5.1.1\5.1.1-rc1\mingw48_32\examples\quick\build-views-Desktop_Qt_5_1_1_MinGW_32bit-Debug\debug\views.exe… QML...
View ArticleFileDialog will omit the nameFilter if you switch between select folder and...
OS : win7 64bit Qt 5.1.0 for Windows 32-bit (MinGW 4.8, OpenGL, 666 MB) import QtQuick 2.1 import QtQuick.Controls 1.0 import QtQuick.Dialogs 1.0 import QtQuick.Layouts 1.0 ...
View ArticleQtQuick need something to work?
I am not sure, looks like this is related to opengl Prebuild version of mingw do not support angle maybe vc with angle could solve your problem or you could update your opengl. related post...
View ArticleAccess multiple c++ data model roles within TableViewColumn
In ListView I could access all roles of QAbstractListModel by only mentioning them. TableViewColumn can access only one. If I have the model in qml itself I can access multiple roles by using nested...
View ArticleHow to render text in scene graph?
Hi, I am writing a custom QQuickItem with QSGGeometry-based rendering (ie not using QPainter) and I need to render text. Is this possible and how? I’ve thought about using Text elements in QML and...
View ArticleCameraCapture and VIdeoCapture
Hello, I know the CameraCapture element allows to capture images from a webcam video stream. Where is the analogous to do the same on a video stream? Something like VideoCapture. I cannot find anything...
View Article