Image alignment does not appear to work?
I am trying to set an image’s alignment so that its point of origin is its centre. I would like it so that if the image is at position 0, 0 then, it is the [i]centre[/i] of the image that is at 0, 0 –...
View ArticleQML remote debugging doesn't work - symbol lookup error, undefined symbol
Remote debugging from host doesn’t work with my first QML application. But debugging the same QML application on the desktop works! In contrast debugging of Qt widget based applications without QML...
View ArticleGet file info when dropping a file in DropArea
As of Qt 5.0.1 release external drop sources are not supported in QML. There already exists a task entry for this feature – but it’s priority is not very high. Qt QTBUG-27498 : support external drag...
View Article[SOLVED]QML Slots & Cpp Signal
Hello ! There’s plenty of tutorials that explain how to make QML Signals available to cpp. But how do you connect QML slot to cpp Signal ? I’ve made this : main.cpp : int main(int argc, char *argv[]) {...
View Article[SOLVED]QML Slots & Cpp Signal
Oops sure. ^^’ Now, it’s just : C:\Dvl[...]\src\main.cpp:34: erreur : no matching function for call to 'QObject::connect(ImageManager*&, const char*, QQuickItem*&, const char*)' Was...
View Article'this' pointer in QML
QML have parent for referencing parent element, but does it have this for referencing this element? For example (Button is an imaginary element that has ‘clicked’ signal and ‘color’ property): Item {...
View ArticleQML GridView - report current selection to C++ code
What I’ve found is that currently the easiest way to know whenever the GridView’s currently selected index has changed is to create a helper class that has a Qt metasystem registered property:...
View Article'this' pointer in QML
I think it doesn’t have ‘this’ (any kind of), you can look for youself [qt.gitorious.org]. I’d suggest using ‘id’ property. Item { Row { Repeater { ...
View ArticleQQmlListProperty: QObject subclass usage
I have a QObject subclass like in this [qt-project.org] example, and I have a list property in it: class Subclass: public QObject { Q_OBJECT ...
View ArticleQML DefaultProperty, possible a bug
According to this [qt-project.org] example: The default property specifies the property to assign to whenever an explicit property is not specified, in the case of the BirthdayParty element the guest...
View ArticleHow do I know my QQmlListProperty changed from QML?
With this example [qt-project.org] I’ve managed to make a list property for my custom type. Now I want to process the list every time it is set from QML, how this is done? I can think about...
View ArticleIs it actually possible to use a C++ QList as a model for a QML PathView?
I’ve already asked this question on stack overflow, but I thought I’d ask here where the real Qt experts are. http://stackoverflow.com/questions/15753419/qt-qml-data-model-doesnt-seem-to-work-with-c...
View ArticleQML Repeater itemAt not working
I have defined a grid like below using repeater Grid { id: grid x: 8;y:8 clip: true smooth: false ...
View ArticleQML using QGLWidget as viewport not getting TouchEvents
My question is how can I send TouchEvents to widgets from a mouse driver plugin when a QGLWidget is the viewport and QML is being used. Using QT 4.7.4. I am using qmlviewer to run the tic-tac-toe...
View ArticleHow do I know my QQmlListProperty changed from QML?
If you want your list property content to be modifiable from JS/QML and detect the changes in your Image class then either your container class (list property implementation) allows you to detect the...
View ArticleIs it actually possible to use a C++ QList as a model for a QML PathView?
So I tried out a horrible hack – here it is: main.cpp: ... dataList.append( new DataObject( "c++ entry6 (purple)",...
View ArticleTo create a new dialogue box using QML
Dear guys, I’m a beginner in QT.Just before 5 days i have started to work on it.Now i was working in QML…In that,my task is to create a new dialogue box by disabling the parent control..That is,if we...
View ArticlePerformance issue with multi QQuickView
I am working on Mac OS, in my app, there will be two QQuickViews, one is an editor, the other one is an animation player which will play the content of the editor. When the player runs in another...
View ArticleQML Repeater itemAt not working
That worked. Thanks a lot. :) I was stuck for two days. Can you please elaborate what exactly was the problem. What is this model loading?
View Article