How to print(with the printer) a QML object ?
Hello, take a closer look at the QPrintSupport [qt-project.org] module, more specifically, at the QPrinter [qt-project.org] class. Also of relevance might be this article [qt-project.org].
View Article[SOLVED]"TypeError: Object [object Object] has no method" when using function...
This is quite frustrating, because from what I understand this should work just fine. So, here’s a little example of what I’m doing: my Qml file: import "js/functions.js" as Funct...
View ArticleListView with Checkbox and FolderListModel
I’ve been working on a ListView in QML which is the central part of my application. I’m looking to add a checkbox to the delegates. I got the checkboxes set up with a state and transition, as well as...
View Article[SOLVED]"TypeError: Object [object Object] has no method" when using function...
Well it looks like my last post was deleted when the server went down last night, so let me sum it up. The problem was my javascript was originally in my QML file, in ‘Component.onCompleted: {CODE WAS...
View Article[SOLVED]Access dynamically created object (created with Qt.createQmlObject in...
OK, so, it seems I’m having one issue after another, and here is my latest. I have a dynamically created ListModel created in Javascript with Qt.createQmlObject(), then I have a dynamically created...
View ArticleUsing qtquick as texture in 3D
I wrote a small demo as described in Using qt widgets as texture in 3D [qt-project.org] to render widgets into opengl textures for using them e.g. as a 3D ui. Now I wonder what would be the best way to...
View ArticleBypassing binding loops
What I’ve ended up with is Component.onCompleted: { width = modelData.duration *...
View ArticleQML Property Browser
I want to create a QML component similar to this http://doc.qt.digia.com/qq/qq18-propertybrowser.html. At the moment I’m returning a QVariantMap with the property name as the key, and the variant as...
View ArticleQML Property Browser
I didn’t try it yet, but the modelData role can be used to access unnamed objects. Maybe the following will work delegate: Text { text: modelData["key"] ...
View ArticleMapObjectView is not recognised as a type
Hi. I am using QtQuick 1.0 and QtMobility.location 1.2 to show a map. I want to add images to the map dynamically using the MapObjectView but adding a MapObjectView to the Map just returns the error...
View Article[SOLVED]Access dynamically created object (created with Qt.createQmlObject in...
Thank you, you’re amazing :D myGrid.model = myModel; was all I needed, and I don’t know why I didn’t think of trying that, it just makes sense when I saw it in your post. And I actually was making my...
View Articletrigger several overlaping sounds .
Hi, I am currently developping an applycation base on QML component. I am using: QTQuick 1.1, QTcreator 2.5.82 QT 4.8.4 QtMultimediaKit 1.1 I have several component which can produce a sound. I am...
View ArticleQt Assistant print selection
It would be nice if Assistant’s print dialog offered the option of printing only the selected text. I searched and found the previous entry from several years ago. Qt QTBUG-1418 Didn’t know if maybe...
View ArticleQML Draw order
How does QML draw order work, especially given that QML is declarative rather than imperative? If I have this code: import QtQuick 1.1 Rectangle { id: outerRect...
View ArticleQML Draw order
it’s because u’re anchor green on blue and isolated the yellow … try to anchor green on yellow
View ArticleCalling a function from a new state
I have a sqlite database, I’m using a function to load the database. I can only get the database to show the contents in all the states not just specific states. Can’t I just call the function in say...
View Article[Solved]Make the icons background become transparent
import QtQuick 2.0 Rectangle{ id : root width : 1024 height : 768 Column{...
View ArticleInheritance issue not direct base of.
I have been looking through the documentation of Qt and have not been able to find information about direct inheritance of a Qt Class, I have found information about multiple inheritance. Perhaps...
View ArticleCalling a function from a new state
And in addition to that, if you want to load different data you could use the onStateChanged in your item/component. onStateChanged: { if (state == "state1") get_db(3);...
View Article