Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Browsing all 4972 articles
Browse latest View live

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 Article


ListView 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 Article


Using 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 Article

Bypassing binding loops

What I’ve ended up with is         Component.onCompleted: {             width = modelData.duration *...

View Article

QML 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 Article


How to import QtQml.Models 2.1

How to import QtQml.Models 2.1

View Article


QML 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 Article

MapObjectView 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 Article

trigger 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 Article


Qt 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 Article

QML 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 Article


QML Draw order

it’s because u’re anchor green on blue and isolated the yellow … try to anchor green on yellow

View Article

Calling 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 Article

Inheritance 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 Article

Calling 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
Browsing all 4972 articles
Browse latest View live