Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • PyQtMobility problem

    6
    0 Votes
    6 Posts
    4k Views
    R
    The point is: to avoid this kind of error when parsing the QML file: @ video.qml:2:1: module “QtMultimediaKit” is not installed import QtMultimediaKit 1.1 @ you must have all necessaries files inside of "imports" directory of you PySide/PyQt installation.
  • [Solved]help for XmlListModel

    4
    0 Votes
    4 Posts
    2k Views
    P
    @kathy only add "Solved" to the title of this post
  • Installing Qt-Components

    6
    0 Votes
    6 Posts
    5k Views
    C
    A little late, but I had have a solution. I just had to correct my $QTDIR variable. After all, I had a similar problem on Ubuntu: I had have a qt path to opt/.. before my to QtSDK in my $PATH variable. After making the path to QtSDK and having a proper $QTDIR variable, it compiled like a charm, and the qt-components worked just fine :) (except the meego related stuff, because I haven't installed all the libraries for it)
  • How to Drag over other objects?

    3
    0 Votes
    3 Posts
    2k Views
    A
    What are you trying to say CMGeorge? Did you check your code? [quote author="CMGeorge" date="1305232932"]@Rectangle { id: dragthis x: 10 y: 80 color: "green" width: 50 height: 50 MouseArea { anchors.fill: parent drag.target: dragthis drag.axis = XandYAxis drag.active = true } }@[/quote]
  • Deploy QML with QtMobility

    6
    0 Votes
    6 Posts
    3k Views
    C
    And your .qml file works in the QML Viewer without problems?
  • QML Video component on S60 5th edition

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Animation on event [solved]

    5
    0 Votes
    5 Posts
    3k Views
    H
    awesome, it works like a charm.
  • Refer global variables from another javascript file

    5
    0 Votes
    5 Posts
    6k Views
    S
    I tried to verify this as far as i could. In fact there is some kind of scope problem. In my main Qml object lets call it "FirstLayer" I'm call on the Component.onCompleted signal a javscript function which builds me different Qml objects using the Qt.createComponent() and component.createObject() functions. After this is finisched the "FirstLayer" object has two "Screen" objects and each "Screen" has at least four "Button" objects. The build process stores all the child objects like "Screen" and "Button" in the corresponding global javascript arrays. In the context of the "FirstLayer" I can access these arrays perfectly. But although I declare the .js file which contains the array as .pragma library I didn't access the same arrays within the context of the "Screen" or "Button" objects. In their context these arrays are still empty. So it looks like they are initializing there own instances of these arrays. And I have no idea how to solve this. So if anybody has an idea how I can fix that. Please let me know. Thanks for any help guys.
  • Count object childrens

    2
    0 Votes
    2 Posts
    2k Views
    A
    Try with 'myRec.children.length'
  • QML C++ Plugins with Qt Creator 2.2 on OS X

    6
    0 Votes
    6 Posts
    5k Views
    H
    Please report if it worked for you kuba. I've got the same issue with the desktop-components, but was too lazy to do anything about it. So I wrote all QML by hand until now.
  • 0 Votes
    4 Posts
    4k Views
    M
    In Qt Quick 1.1 you can establish binding in imperative JS code... See http://developer.qt.nokia.com/forums/viewthread/5494/
  • How to reload the ListModel after updating the values of roles

    2
    0 Votes
    2 Posts
    5k Views
    A
    Did you try this in SampleModel.qml : @ import QtQuick 1.0 ListModel { ModelElement {url: myfunction(input) }, ModelElement {url: myfunction(input) }, ModelElement {url: myfunction(input) }, ModelElement {url: myfunction(input) } } @ But I think you should not store a function in the modelelements, just store values and when needed update the value in the model.
  • TreeView in QML?

    3
    0 Votes
    3 Posts
    5k Views
    S
    Hi, We have implemented something similar to this (without the drag + drop). Our solution is to store the folder structure as a C++ list model, with items being inserted/deleted when the view opens or closes a folder. Using roles for the items allows the QML to know whether the item has children and if it's open. This breaks the model/view structure in that the underlying model knows which folders are open in the view, but it means the QML is nice and simple. Regards, Steve
  • How to bind TextInput.text to QString property in two ways?

    14
    0 Votes
    14 Posts
    19k Views
    N
    Yes it does, I've just commented out the check and the warning appears.
  • Header.h in qml files

    4
    0 Votes
    4 Posts
    4k Views
    S
    ok thanks. I used another approach to realize this.
  • Qt QML and SOAP

    9
    0 Votes
    9 Posts
    9k Views
    C
    it's done, I used this link as reference: "http://doc.qt.nokia.com/4.7-snapshot/qtbinding.html":
  • Drag object from one component to another

    5
    0 Votes
    5 Posts
    3k Views
    A
    I am really interested to see how dragging an element from one container to another is done.
  • [Solved] Stripping double quotes from string

    3
    0 Votes
    3 Posts
    4k Views
    S
    Hi, Ok, it's not a problem with QML. I was trying to catch linkClicked(QUrl) signal from QWebView in C++, and pass them to QML. By default QUrl encloses urls in double quotes while converting them to strings ( when I call toString() ). Thanks for your reply !!!
  • Create sub a ListModel

    12
    0 Votes
    12 Posts
    6k Views
    M
    I actually tried connecting to a 'onCountChanged' signal on the ListModel but w/o success. Don't know if that is a bug or feature :)
  • Missing modules in qml viewer

    2
    0 Votes
    2 Posts
    2k Views
    kidproquoK
    I seem to have found my problem. Apparently if I change the "import QmlProject 1.0" in the *.qmlproject file to "import QmlProject 1.1" everything works just fine. I think this might be a side effect of creating the project in the Qt SDK 1.1 (with creator 2.1) and then working with it in Creator 2.2 or something.