How do I actually execute C++ code in Qt Quick?
Sorry in advance for being such a noob, but… I ragequit on google after searching this for a while :( I’ve made a function in c++ that looks like so: string convert(const string& userstr) {...
View ArticlePolling for SDL events in a custom QObject-derived C++ class?
I’m in the process of writing a QML/QtQuick application, and my goal is to be able to control this app with a variety of input devices; including some that don’t seem to be officially supported by Qt...
View ArticleHow do I actually execute C++ code in Qt Quick?
Actually it really is not much code you have to write to call your c++ function, as soon as you understand the basic concept of Qt and QML. if you want I can write a small example to show you how to do...
View ArticleIncluding MessageDialog
HI, I am using Qt5.2, i have a user input QML screen in which the user will fill form and submit. On Submit, i want to do the validations using the javascript function and if there is any error then...
View ArticleIncluding MessageDialog
Hi , did you see the example code at http://qt-project.org/doc/qt-5/qml-qtquick-dialogs-messagedialog.html#details ? What did you try and why doesn’t it work for you? The example looks fairly easy to...
View ArticleCan a QML file refresh a JS import at runtime?
Is there a way to have a QML file re-import a JS file at runtime? For example, I have this line at the top of a QML file: import "qrc:/someJSfile.js" as MyJS Now, suppose new...
View ArticleHow to enable multi-touch in QML ?
How to enable multi touch in QML ? I have 2 buttons, and i simply want to push them at the same time.
View ArticleHow to get eval() to operate in the scope of QML element
If I have some JS code as text and I call it in eval(), I can then use the functions defined by this statement only in the scope of where the eval() occurred. As far as I can tell, this means that any...
View ArticleIncluding MessageDialog
Hi, I just tested it myself, works like it should be with Qt 5.2.1, you don’t need to add any special libraries or modules in the project file. My test code: import QtQuick 2.2 import QtQuick.Dialogs...
View ArticleModify phonon sound volume :
Hi, I am developping on QT4.8.4, qtQquick 1.1, and I devellopped a sound player plugin. I need to be abble to modify the sound volume dynamically, but I cannot found any working solution. I am using...
View Article[SOLVED] How to call C++ class or function on QML
Hi Kamb!z, Here is the working example I have complied and run it ……. ! // —— sample_ttr.pro —- #————————————————————————- # Project created by QtCreator 2014-05-05T18:05:02 #...
View ArticleHow to get eval() to operate in the scope of QML element
I found the solution. Using Qt.include() allows for dynamic reloading of a javascript file at runtime, even if that javascript file has changed.
View ArticleHow do I actually execute C++ code in Qt Quick?
Ok I think in your case this is the simplest way you ca do it: 1. create a QObject class with your functions and properties, what you want to use from QML, I have created a class claled MyStuff...
View ArticleHow to enable multi-touch in QML ?
Wait what mouse, how can you have a multi touch/click with your mouse? You only have one mouse cursor!? I have not seen any system where you can have more than one mouse cursor at the same time :D That...
View ArticleQtQuick scenegraph Font rendering
Greetings Qt coders, I’m in the process of porting my application from QML 1 to QML 2. I’m on Windows Mingw Qt 5.2.1 Opengl. I think I have an issue with font rendering. I’m using...
View Article[SOLVED] How to call C++ class or function on QML
Hi Kamb!z, Your Welcome to Qt’s cross platform world !!! Thanks Prashant Moglaikar
View ArticleHow to enable multi-touch in QML ?
I have system, portable computer, with mouse and touch screen. And i want both to work simultanouesly. In addition, i want to same code without modifications work on tablet with linux (not android)...
View ArticleMultiPointTouchArea don't work, with official example
Hey, official example from http://qt-project.org/doc/qt-5/qml-qtquick-multipointtoucharea.html dont work. Code: import QtQuick 2.0 Rectangle { width: 400; height: 400...
View Article[solved] Reload a JS file at runtime (I'm testing ClojureScript as a workflow)
Yes, that does work. I should have updated this question to note it was solved. I did some extensive experiments yesterday and arrived at the same conclusion. Thanks.
View ArticleMultiPointTouchArea don't work, with official example
On what platform, what device, what touchscreen?
View Article