Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • Problem with states when pressed

    5
    0 Votes
    5 Posts
    1k Views
    K
    When you release mouse this state @states: State { when: icon.pressed PropertyChanges { target: mask; opacity: 0.75 } }@ stops working because of when is not set to true, it works fine withour flickable. But with flickable area from time to time when i click a button it gets dark(state works) and move my finger a little bit signal about releasing it is not sent. I think its because flickable get the signals now. in 95% it works perfectly but there is this 5% that is annoying and I am not sure if my app freezed or its just this bug
  • Multimedia keys

    1
    0 Votes
    1 Posts
    679 Views
    No one has replied
  • Large virtual canvas

    2
    0 Votes
    2 Posts
    1k Views
    R
    Solved this problem with requestDraw() at event when canvas window go outside of the drawn tile(s).
  • [Solved] Qml Canvas loadImage not working

    3
    0 Votes
    3 Posts
    4k Views
    SGaistS
    Hi and welcome to devnet, The SSL errors are probably completely unrelated. However the path problem is more a string problem, one backslash means that you are escaping the next character so you are giving something invalid. On windows you would need to use two backslashes if you wanted to keep that notation. But you already found out that you can use the unix notation which is less error prone with Qt :) Since you found the solution, can you please update the thread title prepending [solved] so other forum users may know a solution has been found :) Happy coding !
  • QtQuick 2 unreliable, breaking and showing "anonymous" error messages ?!?

    1
    0 Votes
    1 Posts
    547 Views
    No one has replied
  • Getting bytes from VideoOutput

    1
    0 Votes
    1 Posts
    458 Views
    No one has replied
  • 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
    620 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
    909 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
    468 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 ;-).