Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • 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
    467 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
    887 Views
    No one has replied
  • How to reset QQuickView and his QML file into initial state?

    1
    0 Votes
    1 Posts
    954 Views
    No one has replied
  • Xmlhttprequest: open with username and password

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    3 Posts
    933 Views
    D
    Thanks man, just the link I needed :-)
  • QtQuick Controls not working correctly with custom QtQuick Items

    5
    0 Votes
    5 Posts
    2k Views
    A
    By plain window, I assume you mean QML being wrapped into an Item { ... } element rather than ApplicationWindow , as well as using QQuickView to handle the window from the C++ side? It did not change anything, but I notice that the clicked event fires off if I click where the button is supposed to be, so it's at least there, just seems like it becomes invisible or put behind the QQUickItem GL window. The button works fine in the openglunderqml example, I copied the Squircle code over to my project and noticed that the button would still not draw unless I did not change the QSurfaceFormat like so: @int main(int argc, char **argv) { QGuiApplication app(argc, argv); QSurfaceFormat format; format.setSamples(16); format.setOption(QSurfaceFormat::DebugContext); format.setMajorVersion(3); format.setMinorVersion(3); format.setProfile&#40;QSurfaceFormat::CoreProfile&#41;; qmlRegisterType<Squircle>("SimpleLOS", 1, 0, "Overlay"); AppView view; view.setResizeMode(QQuickView::SizeRootObjectToView); view.setSource(QUrl("qrc:////content/gui/main.qml")); //view.setFormat(format); view.show(); return app.exec(); }@ Setting up my normal scene again without changing the QSurfaceFormat does not show the button, but at least I can be fairly certain that the issue has to be with the context or something similar.
  • Manual event controlling in C++ from e.g. MultiPointTouchArea

    1
    0 Votes
    1 Posts
    824 Views
    No one has replied
  • How to open a main window in a second monitor with 'Qt Quick'

    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    It's also a solution but you have to know your screen dimensions. With QDesktopWidget you ensure that you are in a valid geometry and don't need to know your screen size.
  • Setting context property for a QQuickView crashing? [SOLVED]

    4
    0 Votes
    4 Posts
    2k Views
    SGaistS
    You're welcome ! If this solves your problem, then please update the thread title prepending [solved] so other forum users may know a solution has been found :)
  • 0 Votes
    4 Posts
    4k Views
    S
    Thanks Vincent, for the suggestion to use qabstractitemmodel. It looks suitable. When I find the time, I'll try this too, it may be more efficient.
  • Qt 4.8 vs 5.3 for QML performance (embedded: no-OpenGL, soft-float)

    4
    0 Votes
    4 Posts
    2k Views
    M
    Using a software opengl renderer doesnt sound like a good solution to me. I cant see how it would improve performance over 4.8. Im starting to think that QML in any form is too heavy for this ARM SoC. No matter what i try, i just cant get anything close to acceptable graphics performance.
  • Getting an Image Buffer from VideoOutput/Camera

    1
    0 Votes
    1 Posts
    827 Views
    No one has replied
  • Save image with whatever on the image

    5
    0 Votes
    5 Posts
    1k Views
    T
    Hope it release soon :)
  • Size of bold font changes between 5.3 and 5.2.1 qt - Any workaround?

    1
    0 Votes
    1 Posts
    490 Views
    No one has replied
  • How to change scenes in QML?

    0
    0 Votes
    0 Posts
    728 Views
    No one has replied