Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • Qtquick 2.0 and designed problem

    3
    0 Votes
    3 Posts
    2k Views
    K
    The Designer for Qt5 is still under development ;)
  • Porting Qt-based UI to QML

    4
    0 Votes
    4 Posts
    2k Views
    J
    This is true. The closest you can get to re-using widget code is to port your QWidget into QQuickPaintedItem. This will at least allow you to re-use your qpainter drawing code. We are working on making it possible to embed qtquick 2 inside QWidget. This would make it possible to at least partially make use of qt quick in your application. This is will happen in 5.1 earliest.
  • QtDesktop, QML and QtCreator

    5
    0 Votes
    5 Posts
    2k Views
    J
    We really havent tried to integrate the components into qt creator designer yet. First we need to get qt designer to properly support qt quick 2.0. I would recommend not using the designer until it officially supported with desktop components.
  • Qtquick - modal dialog - best practices

    2
    0 Votes
    2 Posts
    2k Views
    A
    You will need to write it by your own
  • Center list view vertically

    2
    0 Votes
    2 Posts
    5k Views
    Q
    You may put your ListView in another container such as Item, which will be vertically centered in main Container from picture. And don't forget to set inner Item height to -listView.height- and width to parent.width. UPD use listView.contentHeight instead of listView.height. Of maybe you will need their combination. I can't test it now, but it should works.
  • Line and curve

    2
    0 Votes
    2 Posts
    934 Views
    sierdzioS
    Use Path, or Canvas elements for a curve. Use a thin Rectangle for a line.
  • 0 Votes
    5 Posts
    14k Views
    A
    see my reply in http://qt-project.org/forums/viewthread/21485/
  • QML : How to read a QList from C++

    5
    0 Votes
    5 Posts
    3k Views
    C
    The discussion really gave me better insight to the concepts :)
  • Calling an object factory method from QML (and getting the QDView)

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QtQuick 2.0: Unable to find a renderable master window

    4
    0 Votes
    4 Posts
    3k Views
    P
    "Developer-Guides":http://qt-project.org/wiki/Developer-Guides under "Particles and Graphics Effects in Qt Quick 2". Download link: "here":http://get.qt.nokia.com/developerguides/qteffects/particles_src.zip.
  • Qtquick-components license

    3
    0 Votes
    3 Posts
    1k Views
    W
    thks
  • Access QML properties from JavaScript

    4
    0 Votes
    4 Posts
    4k Views
    S
    Thanks, yes importing JS file in every Qml file would mean initialising this JS file every time Qml is instantiated. If that would be the only option, it makes it impossible to access properties of different QML files from one JF function. I can understand this, there might be a problem with same property names in several different files, but you cann still access them via id of the different QMl files, which have to be different. @ ... firstPageId.foo secondPageId.foo ... @ So I still have hope, it is possible to import JS only once and access Qml properties of all QMLs from one function :-) Another option is .pragma library which would NOT access ANY Qml properties. cheers simon
  • Video player in QML

    6
    0 Votes
    6 Posts
    4k Views
    T
    Its a Qt Quick project, so I only have a .project file. As it stands, I don't have any C++ files with this project at the moment
  • IUtem Selection with TouchArea or Mouse Area

    1
    0 Votes
    1 Posts
    968 Views
    No one has replied
  • Transparent MouseArea

    4
    0 Votes
    4 Posts
    1k Views
    sierdzioS
    Strange choice. What I do in my project is to give buttons their own MouseAreas, and place the buttons above (using 'z' value) the background (which also has a MouseArea). This way, when user clicks on a button, I can handle the action for this button, while the main MA remains untouched. If user does not click on the button, though, main MA kicks in. Anyway, obviously you know your project better, maybe your solution is better in your case. The two ways to achieve this that I provided should work, after some adjustments.
  • QT5 PlugIn Tutorial

    3
    0 Votes
    3 Posts
    3k Views
    H
    Thanks! I have allready seen this tutorial, but there is no discription how to install the plugins with qt5 & QTCreator. My main Problem is, that the plugin is not installed ( my be i have to set the plugin dir - but i don't know how )
  • Create a new item and have it run some code

    6
    0 Votes
    6 Posts
    2k Views
    sierdzioS
    You may need to consider doing some easier examples at the beginning. Here is what your constructor probably looks like: @ XmlListModel2::XmlListModel2(QDeclarativeItem *parent) : QDeclarativeItem(parent) { test(); // just add this line } @
  • Windows 8 loading icon/Animation in QML (Rotating)

    6
    0 Votes
    6 Posts
    3k Views
    sierdzioS
    You need to submit code through "Gerrit":http://wiki.qt-project.org/Main_Page. A more detailed intro is available from "a post by Tucnak":http://qt-project.org/forums/viewthread/22650/.
  • XmlListModel to ListModel

    2
    0 Votes
    2 Posts
    1k Views
    D
    I can add single elements to the listmodel clicking the single delegate @onClicked: listmodel.app(name, age)@ But I can't select all elements and add them
  • How does the scene is updated on screen from QML.??

    10
    0 Votes
    10 Posts
    5k Views
    E
    [quote author="aekam" date="1355393909"] Does this mean that in QtQuick 1.0 whenever there is change in property of multiple elements simulteneoiusly, each and every element calls its paint method individually and more over sequencially, one by one.???[/quote] In QtQuick 1.0 all the visual elements are QGraphicsItems. Whenever you change a property that changes the visual appearance of an item the item usually calls QGraphicsItem::update on itself (see for example QDeclarativeRectangle::setColor()). This tells the graphics view framework that this item is dirty and should be repainted. Which items' paint() functions then get called depends on the viewport update mode of your QGraphicsView/QDeclarativeView. Check out http://qt-project.org/doc/qt-4.8/qgraphicsview.html#ViewportUpdateMode-enum for description of the different modes. When you use QDeclarativeView, the default is BoundingRectViewportUpdate.