Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.2k Posts
  • 0 Votes
    5 Posts
    2k Views
    D
    Hi thanks, but I already dismissed the idea and switched to a horizontal listview for swiping through pages (what i wanted to achieve with the gesture area). So the only example available is the one you posted.
  • No mechanism to be notified by QImage on last reference to private data

    1
    0 Votes
    1 Posts
    615 Views
    No one has replied
  • Cant make Instantiator work with QList<QObject*>

    11
    0 Votes
    11 Posts
    3k Views
    S
    Thanks, I'll check this
  • How to queue the invocation of a slot instead of calling directly ?

    3
    0 Votes
    3 Posts
    1k Views
    T
    [quote author="chrisadams" date="1402025578"] The closest you can do is create a Timer object with a timeout of 1 millisecond (actually, 0 might work, not sure), and invoke the function in the onTriggered / onTimeout or whatever it's called, handler. @[/quote] Agreed, without adding additional underlying code this is probably the best solution. An interval of 0 works for this too, in my experience.
  • QtQuick very slow on linux

    3
    0 Votes
    3 Posts
    1k Views
    T
    Most of the unexpected performance problems seen with QML seem to relate to rendering, particularly when OpenGL rendering is being carried out using software rendering rather than hardware. If you haven't updated your graphics drivers then that would be the first thing to check.
  • Qt Quick Compiler

    2
    0 Votes
    2 Posts
    2k Views
    sierdzioS
    Ask Digia, maybe they will make some special offer for you. Otherwise, you need the whole commercial package, AFAIK.
  • How to use other items in a view?

    2
    0 Votes
    2 Posts
    904 Views
    C
    Okay, I have found a way: @TableView { TableViewColumn{id: col1; role: "V1"; title: "VALUE_1"; width: 100 } TableViewColumn{ role: "V2"; title: "VALUE_2"; width: 100 } model: testModel itemDelegate:Item{ Button{ visible: styleData.column === 0 id: arrow tooltip: "Left" } Text { anchors.left: arrow.right text: styleData.value } } }@ I suppose the itemDelegate in QML is different from the delegate-functionality in QtWidget because in QML there is no user action like clicking needed before the delegation widget will be drawed and usable, right? Or did I oversee a property with the QtWidgets which enables also an immediately using of the delegate widget?
  • Way to filter/search ListView contents

    4
    0 Votes
    4 Posts
    6k Views
    JKSHJ
    Sorry, my brain wasn't working properly -- I completely missed the fact that you're working in QML. Anyway, does this help?: http://kunalmaemo.blogspot.com.au/2013/04/creating-qml-listview-with-search.html (I Googled "QML filter model")
  • HowTo: Struct -> QVariant -> QML type

    2
    0 Votes
    2 Posts
    2k Views
    V
    I think you should wrap your struct in an QObject-derived class, and then register this class to QML engine so that you can instantiate the class in QML. You can create a method, which is callable in QML, in the class to assign values to your struct via QML code.
  • Render texture to QQuickFramebufferObject using OpenGL

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Typo in attached property scoping example?

    1
    0 Votes
    1 Posts
    467 Views
    No one has replied
  • Using QML Items as texture for custom QSGGeometry QML QQuickItem

    5
    0 Votes
    5 Posts
    4k Views
    M
    Thanks lemourin, Eventually I got it working a while back, but it was not a nice experience writing lots of nasty c++ to get around the lack of public API for doing this and has been captured by the following bug. https://bugreports.qt-project.org/browse/QTBUG-31989
  • Model/View: using single view and single model with several sets of data

    4
    0 Votes
    4 Posts
    1k Views
    J
    I think it's reading it as javascript not as part of the delegate. I think you might want to change the role used by the delegate by doing something like: styleData.role = "number" This seems to not be very well documented. I inferred this from these two sources: http://stackoverflow.com/questions/22874387/qml-tableview-access-model-properties-from-delegate http://qt-project.org/doc/qt-5/qml-qtquick-controls-tableview.html#itemDelegate-prop
  • 0 Votes
    2 Posts
    1k Views
    S
    Solved, the above code was OK ! My test model data was wrong : It had minimum and maximum swapped (min =100, max = -100). Doh! This had the effect that I could edit the existing value (that was out of range) without limits, but after deleting all characters i could not enter anything. Oh well, above code may be useful to someone, it works fine when fed with the correct parameters ;-).
  • [SOLVED] Defining own QML type - can i define method ?

    5
    0 Votes
    5 Posts
    1k Views
    S
    Ok, thanks. That worked.
  • Wacom and Qt Quick 2

    9
    0 Votes
    9 Posts
    3k Views
    K
    Any update on this with the new Qt 5.3?
  • Best way to use various MouseArea for mobile application

    1
    0 Votes
    1 Posts
    466 Views
    No one has replied
  • Ordering Property and Anchor changes

    2
    0 Votes
    2 Posts
    729 Views
    p3c0P
    Hi, I think you can use a "sequentialanimation":http://qt-project.org/doc/qt-5/qml-qtquick-sequentialanimation.html and a "scriptaction":http://qt-project.org/doc/qt-5/qml-qtquick-scriptaction.html here.
  • Dropdown tool from toolbar...

    1
    0 Votes
    1 Posts
    884 Views
    No one has replied
  • How to reset QQuickView and his QML file into initial state?

    1
    0 Votes
    1 Posts
    952 Views
    No one has replied