QtQuick2: Drag and Drop between two ListViews
Hi, I am trying to determine how to accomplish drag and drop between two ListView’s in QtQuick 2.0. It looks like it should be possible through a combination of Drag, DropArea, VisualDataGroup and...
View Articleqml property custom type without creation
Hi, I have a c++ class which i want to use in qml and in other c++ classes; Say C++ class TimeHandler; and a class UiHandler; I register TimeHandler as a qmlType. In the class UiHandler I create 2...
View Articledynamic created buttons change content of other dynamic created elements
Hello With the help of the forum I dynamically created some buttons which I assigned a function to a property.. Now, inside this function, I would like to refer to other Items which are also...
View ArticleIf the QML could do system time calibration on linux?
I am doing an app to show the time on device on which is running a Linux, If I want to calibrate its system time, is QML able to change the system time? I search google and see somebody use js to get...
View Articleqml property custom type without creation
Thanks I tried to do it with null as default value. But if I register TimeHandler as an UncreatableType it still fails in qml at the property. Could you please explain the other way you stated a little...
View ArticleIf the QML could do system time calibration on linux?
Yes, you will need to extend QML using C++. JavaScript itself can’t control system time.
View ArticleCan Q_INVOKABLE function return reference ?
Can Q_INVOKABLE function return reference ? For example: Q_INVOKABLE const QString& myFunc(int _myInt);
View Articleqml property custom type without creation
Oh I see, now I understand. Thanks a lot for your help.
View Article[SOLVED] Reporting Javascript errors to users
Dear all, I’m playing with QML trying to use it in a non-GUI program. It works very well :-) But now, I would to report javascript errors to the users and I did not find a way to do it. This is the way...
View ArticleCan Q_INVOKABLE function return reference ?
“you can’t do it for QML and C++ data exchange” For what other reason should I use Q_INVOKEABLE ? There are all sorts of uses outside QML. This macro is much older than QML and is part of the...
View ArticleHow to reload QML file with ApplicationWindow object?
Hi guys, I develop application with QML Desktop Component and can’t understand how to refresh main window from QML or C++ code. I created a class which created a main window by code bool...
View Article[SOLVED] Reporting Javascript errors to users
I found the solution !! Thank you for the hint given to me :-) The solution is to use QDeclarativeExpression instead of QMetaObject::invokeMethod. Here are the details: suppose you have the following...
View ArticleHow to reload QML file with ApplicationWindow object?
Ok, I read docs and found this page [doc.qt.digia.com]. But when I try to use example code from article I received error like this: QQmlComponent: Created graphical object was not placed in the...
View ArticleHow to change a property of an object in an array list
Hi Qt Hackers in this example ( http://harmattan-dev.nokia.com/docs/library/html/qt4/declarative-tutorials-samegame-samegame2.html ) an array is used to store the objects of the gamefield. When they...
View Article(Qt 5) Qt Quick 2 application - will not link when c++ class instance created...
Just a test project with one class (nothing in it) and one qml file and a main.cpp – my purpose is to learn how to take a c++ variable value and display it via qml. Class just has a constructor,...
View Article(Qt 5) Qt Quick 2 application - will not link when c++ class instance created...
I am using Qt 5 on Windows 7. QT += quick is that in the .pro?? I have posted the whole .pro file and obv it is not there :-) I will try that first when I am work tomorrow. Thank you :-)
View ArticleIf the QML could do system time calibration on linux?
Oh, thank you, I think I should try other way.
View ArticleI cannot load sqlite table when my qml application autostart on linux
I use sqlite db in my qml application. I want my application could be autostart when my linux device start up. when I debug my application, I run my qml application on command line after my linux...
View ArticleI cannot load sqlite table when my qml application autostart on linux
Maybe you run it under different user from /etc/initab (e.g. as root) and naturally it looks for DB in other location.
View ArticleHow to change a property of an object in an array list
Maybe that will give you some hints. This is output from node.js but javascript is javascript. Actually download node.js and try to play around with it a little bit: > a = new Array(10) [ , , ,...
View Article