QML alias not working
- if I import “Main.qml” the file will not load at all (which means it thinks there is a syntax error I think) – if main.qml file does not start with a capital when you type main.mainLoader it does not...
View ArticleOld Plugin System New Plugin System
I am confused about the plugin system. I a using Qt 5.1 with a msvc compiler, but I am developing in QtQuick 1.1. I cant get any plugins to work. Do I need to use the old plugin system...
View Articleqmlqtimeexampleplugin not working
has anyone got this pluginexample working? In my case it complains abaout not finding the plugins just like in my own examples and i cant wrap my head around why.
View ArticleHow to reload the repeater's data model in QML?
I’ve a QML with Repeater which uses QList(QObjects) as its data model. On a button click, an attribute QLIST X object is updated. As the underlying data model property value is updated, I wish to have...
View Articleqmlscene: 'import QtQuick 1.0' is no longer supported.
Thanks for the reply it solved my problem
View ArticleShowing Grid in TabelView
Note that the table view is not really intended for spreadsheet type applications which is why I suspect you want the grid. You can easily create a grid by setting a custom itemDelegate and adding a 1...
View ArticleListModel default property problem
Upon further digging through the source for ListModel, I realize that the reason there is no default property for ListModel is because it uses a custom parser.
View ArticlePopulating QAbstractListModel's current item values in controls
I have the following UI in my application: The ComboBox (Qt Quick Control 5.1) would use a QAbstractListItem-based subclass to populate itself. A subclass instance would be exposed to the QML through...
View ArticleDrag and Drop with QQuickView
I’m upgrading my application to Qt 5.1, Qt Quick 2.1. I display a QML view in my mostly widget based application, on top of QDeclarativeView. Originally I subclassed QDeclarativeView to add drag/drop...
View ArticleDrag and Drop with QQuickView
Just bumped into this: http://blog.qt.digia.com/blog/2013/02/19/introducing-qwidgetcreatewindowcontainer/ I see this will give me a QWidget. How can I now write the code for its drag / drop slots...
View ArticleSetting a variable angle for the Transform: Rotation {} element?
I am running Qt 5.1 and QtQuick 2.0 on a Mac with OS-X 10.8.4. I am having trouble setting a variable angle for the Transform: Rotation {} element, like this: transform: Rotation { ...
View ArticleVertical header in TableView and ResizeMode for headers
Jens, I tried your code for creating vertical header delegate and I understood that I don’t understand how styleData works. It’s not a Loader property but it’s likely not an attached property either,...
View ArticleVideoOutput from /dev/video
Hello, reading the docs I don’t understand how to show a video stream from a /dev/video* device. The help says about source property: This property holds the source item providing the video frames like...
View ArticleQSGGeometry / scenegraph: how to reuse data from QSGGeometry
Hi, I am using scenegraph to generate a chart and so each x ms I get a new data sample from the input module. Now I regenerate the data constantly using a for loop: ...
View ArticleQSGGeometry / scenegraph: how to reuse data from QSGGeometry
Please check out the code wrapping section [qt-project.org] in the forum help. This helps to make your code more readable in the forum.
View ArticleQt5.1 TextField - Keys attached property - capturing key-presses
Hey, With the following code: import QtQuick 2.1 import QtQuick.Controls 1.0 import QtQuick.Layouts 1.0 ApplicationWindow { title: qsTr("Some App") ...
View ArticleSwitching View multiple times between C++/QML
I’m using Qt 5.0.2 ( same issues when i tried with Qt 5.1) on an embedded linux (ATV1100B) with EGLFS. My project are switching constantly between a QML apps which is the base of the project (main...
View ArticlePassing signal from C++ to object in loader
Hi everyone, I’m having some issues on passing a signal from C++ to a loader that handles the object I need to receive the signal. The struct is: -C++ Layer (emits the signal, object correctly...
View Article