Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • [Solved] How QQuickImageProvider is dealing with http url links?

    7
    0 Votes
    7 Posts
    2k Views
    C
    Thnx for the advice!
  • Transfer parameter to C++ by reference from QML

    5
    0 Votes
    5 Posts
    2k Views
    W
    Yes, I have tried the way as my question. It works. But only for C++ objects as parameters. If js object,such as var o = {...}, we could use QJSValue or QVariantMap to accept.
  • Merge menu side

    7
    0 Votes
    7 Posts
    1k Views
    K
    [quote author="p3c0" date="1406793948"]I think you can make that using a ListView and place it to extreme left and then onClick or onDrag over the ListView's parent Item you can accordingly set the x position of the ListView.[/quote] ty
  • The sliding menu in QML

    4
    0 Votes
    4 Posts
    4k Views
    K
    [[blank-post-content-placeholder]]
  • [solved] How to check for null contextProperty in QML?

    6
    0 Votes
    6 Posts
    14k Views
    F
    Ah well, after some pondering on the findings, I resorted to the following way: Always set context before loading QML, even if it's just a setContextProperty("juice", nullptr). This is just like we always initialize class fields before usage. Then the simplest check can be used in QML: @ if ( !juice ) { @
  • New drag-and-drop mechanism does not work as expected in Qt-Quick

    7
    0 Votes
    7 Posts
    3k Views
    SGaistS
    Don't be so sure, others may have just not found out about it yet ;)
  • [SOLVED]MouseClick is always accepted

    5
    0 Votes
    5 Posts
    1k Views
    T
    positionViewAtIndex is the solution. The trick is to find a event instead of MouseArea.onClicked to call it. I found it in the resize of the ListView. This is called everytime the OSK is shown/hidden. So it is solved.
  • Why is there extra wrapping of components?

    1
    0 Votes
    1 Posts
    479 Views
    No one has replied
  • Change property of all items in a Repeater at once?

    5
    0 Votes
    5 Posts
    2k Views
    G
    This is an interesting example of QML usage, thanks. I can't use currently because each rectangle's state gets overridden and becomes individual so I have to go back through each one and reset it somehow. I want each item in the repeater to be independent, except in this one case.
  • TableView horizontal orientation

    1
    0 Votes
    1 Posts
    519 Views
    No one has replied
  • How to Learn QML step by step

    2
    0 Votes
    2 Posts
    2k Views
    SGaistS
    Hi, "This":http://qmlbook.org comes to mind for a starting point Hope it helps
  • QML front end in CPP: compile/linker trouble

    5
    0 Votes
    5 Posts
    3k Views
    p3c0P
    Try @ #include <QtQuick> @
  • Add Static Path to Image Source in qml

    5
    0 Votes
    5 Posts
    6k Views
    B
    Hi sorry that was a mistake from me while typing.I require nly relative path. And the above sample of code does not work for me.. And the reason y i do not want to use qrc is,i will be capturing images from camera and will be saved in project folder during runtime...So i cant add that files to qrc at dynamic time right..so i chose this method..Do u think is there a better way to handle..? Thanks for ur Reply Dheerendra
  • Problems with QtQuick and sizing

    5
    0 Votes
    5 Posts
    1k Views
    T
    Thanks again ... I will check it... what a pitty that the debugger does not give more information :-/ Tobias
  • Reusing a delegate component in QML

    3
    0 Votes
    3 Posts
    2k Views
    A
    Thanks so much! It worked. I'm new to Qt, so you saved me a lot of time :) Thanks again.
  • How to remove a specific row from QML table

    2
    0 Votes
    2 Posts
    2k Views
    p3c0P
    Hi, You could use "selection":http://qt-project.org/doc/qt-5/qml-qtquick-controls-tableview.html#selection-prop properties like select and deselect on ToolButton clicked.
  • Accessing TabView elements by id does not work

    2
    0 Votes
    2 Posts
    790 Views
    G
    I found a workaround by giving the tab an id and use @tabContacts.children[0].model = x.results;@ Nevertheless it would be nice that ids work also for tab children.
  • Menu Navigation - problem with nesting ListModels

    1
    0 Votes
    1 Posts
    533 Views
    No one has replied
  • PinchArea and Zoom in QMl

    8
    0 Votes
    8 Posts
    10k Views
    p3c0P
    No i guess, last one will override.
  • 0 Votes
    3 Posts
    831 Views
    S
    Hi, thanks a lot that makes sense. I'll try that.