Save and load txt file
Hi, I’m writing a simple program with Qt 5.0 and I’d be interested, via a button, to save the written text of a text in a .Txt file in the same folder where there are all the program files. Then, again...
View ArticleSave and load txt file
Just create a QObject derived class, add a read and write slot and implement using QFile, register the class to QML, instantiate it in QML and connect it to the signals of your buttons.
View ArticleExposing C++ model property of type QList to QML
Roland_R, thank you for your reply. I missed that article. Indeed, it started working after I changed the property to be of type QQmlListProperty.
View ArticleDrawing a graph in Qt Quick 2.0
Hello there, I’m trying to build a graph visualization tool (i.e. like the git network view in github). I would like to make a small discussion on the performance issues I have found and a possible way...
View ArticleUsing non-creatable type in QML
Hi, You’re right – it should be expanded to explicitly mention that properties of that type cannot be declared. Please file a bug report about this issue. Thanks, Chris.
View Articleconfused about keypress event
Perhaps you can upload your files somewhere so other people can try it on their local machine.
View ArticleDynamic QML object question
I’m using 4.8.4. I don’t think it can be done. There doesn’t seem to be a way I can trap that event when I create the keyboard dynamically.
View Articlestarting with the Qt Quick Tutorial...
Well it is using an older version of creator so it is outdated. After Qt 5.0 was released the templates had to be renamed to reflect the versioning and I suppose the tutorial did not re-create all the...
View ArticleDrawing a graph in Qt Quick 2.0
Hello, thanks for the answers. chrisadams , I didn’t know about beginCreateObject, I’ll try it! Maybe I could use the C++ side of the animation engine, or maybe use a QtObject for each line just to...
View ArticleInstalling QtQuick Controls
Realise this isn’t released yet but I’d still like to give it a go. I’m having problems getting the plugin to install correctly. I’ve cloned the qtquickcontrols repository and ran qmake; make install....
View ArticleChanging Rectangle border color decline performance
I use GridView to build 3×3 rectangle block, and change the each border color when mouse hover entered, change back in exited. I notice the CPU utilization will increase when surfing on the Grid. If I...
View ArticleCreate new Element on demand
Hello! Can i create new elements,such as Buttons,or element in List on demand? For example,if i receive a new data-i add new QML ListElement in my view? Thanks.
View ArticleBasic language types implementation
see how the QVector3D type is registered as vector3d Where are those basic types registered?
View Articlea bug of Item position in Qt Quick2
I think this is a bug. When the rotation is 0, everything is ok, we can set new width or height normally. When the rotation is not 0, if I set the new width or height, I find that the item will move to...
View ArticleSet onClicked function based upon state
What I would like is that if the object is in a certain state it should call func1 when onClicked is called and in a different state should call a different function. So instead of something like this:...
View ArticleInstalling QtQuick Controls
Sorry, I don’t know how to help you, then. I think this project is planned for inclusion in 5.1 or 5.2?
View Articlea bug of Item position in Qt Quick2
Just use a placeholder to center your rotating item into. Here is an example – the rotating item will move with the mouse cursor as it rotates around its center and changes width: Rectangle {...
View ArticleMemory footprint of QML applications
I’ve seen simple QML eye candy run just fine on a Pi, but I won’t go into speculating what would the performance of an actual application be, in a scenario with other background tasks running. I think...
View ArticleSet onClicked function based upon state
You should be able to modify the signal handler from JS like this: State { name: "one" ...
View Article