filling a ListView with a custom Model?
Looks to me that you have an object inherited from QObject that tries to use a Copy constructor. According to this : http://qt-project.org/doc/qt-4.8/object.html#qt-objects-identity-vs-value QObject...
View ArticleTo import pulgin in qml(Qt 4.7.4)
What you probably need is this little piece of code: http://qt-project.org/doc/qt-5.0/qtqml/qqmlengine.html#addImportPath You need to do this in the main.cpp file. Or where ever you have access to the...
View Articleupdate ListView with onClicked
Thank you making it a global QML worked! but it only shows the content from the database in the terminal not the app
View ArticleCall a function by onClicked in qml
I am trying to call a function clearcanvas by “onClicked” event of the button. Can anybody help me out on this so that when I click on the button it should call the function and execute it.
View Articleupdate ListView with onClicked [solved]
Do you have a return statement in your function that should return the updated database model? Im not sure if the code in the OP is up to date anymore, but I don’t see a return statement.
View ArticleCall a function by onClicked in qml
1 : Declare the function clear outside of the Canvas component 2 : Declare the var ctx as a property of canvas 3: please post your codes by text rather than image next time, this would easier for us to...
View ArticleGet the raw buffer of ShaderEffectSource
Do anyone know how to obtain the raw buffer of ShaderEffectSource? I would like to do some postprocessing on it(save image, video record etc)
View ArticleForce Key Navigation focus
My key nav moves fine moving forward through states but once I go back my key nav. stays in the previous state. Is there a way to force the focus of the key nav? Something like Keys.OnPressed { .........
View ArticleListView not being updated at runtime to follow the model
Hi, In our new project we have decided to use qml for the 1st time. Having spent sometime learning qt quick 1.0 in Qt 5.0, we suddenly have Qt 5.1 coming up which focuses on qml on desktops – what we...
View ArticleC++ QQuickItem with QML MouseArea doesn't behave as expected
Hello, In a C++ QQuickItem derived class, I’m creating a QML Item the following way. QQmlEngine engine; QQmlComponent component(&engine); ...
View ArticleBest way to create a QML Dialog with QQuickView, to be run before main QML...
OK, so what I am doing is I have a QQuickView set to a ‘main.qml’ file, which is my main app window, then I have QGuiApplication, now I’ve come to realize that as soon as QGuiApplication::exec() is...
View Article[Solved] C++ QQuickItem with QML MouseArea doesn't behave as expected
Solved : It works if I reuse the QQmlEngine of the parent QQmlViewer. Here, the QQmlEngine was locally created.
View ArticleQList style Javascript API
After seeing this: http://blog.qt.digia.com/blog/2013/05/16/qtified-javascript/ I decided to write my own library to expose QList’s API in javascript. You can find the project here:...
View ArticlePlug and paint example in Qt5
Hi friends, I’m using QtCreator to compile the Plug and Paint example from Qt5 and i got this error /usr/bin/ld: cannot find -lpnp_basictools collect2: ld returned 1 exit status I have searched in...
View Article[PROBLEM]::can't find a way to cooperate with .cpp file
I want to be able to change the text, of text edits in my qml file, from my .cpp file; and the values of variables in my .cpp file, from the mouse areas in my qml file… Yet i can’t seem to be able to...
View Article[PROBLEM]::can't find a way to cooperate with .cpp file
the remaining .qml file: Rectangle { id: rectangle4 ...
View ArticleCan't load the image after I register the qml file to Qt resource system
Before I register the main.qml to Qt resource system, everything are fine after I register the main.qml to Qt resource system, I can’t open the file main.qml import QtQuick 2.0 Rectangle {...
View Article[Solved]Can't load the image after I register the qml file to Qt resource system
find the answer solution [qt-project.org]
View Article