Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • Pinch and Zoom Camera object in Qml

    2
    0 Votes
    2 Posts
    1k Views
    p3c0P
    Hi, Have you tried using "pincharea":http://qt-project.org/doc/qt-5/qml-qtquick-pincharea.html and passing your camera obj to "pinch.target":http://qt-project.org/doc/qt-5/qml-qtquick-pincharea.html#pinch.target-prop property ? To mention I have not used it personally.
  • Binding C++ Class to QML to create dynamic ListViews, NoGo :-(

    3
    0 Votes
    3 Posts
    1k Views
    N
    Argh, i found the problem, i did a very simple mistake: The property i want to set in the SimpleList Component has to be in the root Object, so instead of this: @ Rectangle { ListView { id: list_view property DataObject theDO ... @ It has to be done this way: @ Rectangle { property DataObject theDO ListView { id: list_view ... @ Wow, thats an easy solution for a (seemingly) complex Problem. Greetings, Nils
  • 0 Votes
    4 Posts
    1k Views
    R
    You've found it. StackView is the Qt5 version of PageStack.
  • Mouse events for rectangles within a flickable

    6
    0 Votes
    6 Posts
    6k Views
    0
    Thanks, really helped.
  • 0 Votes
    4 Posts
    3k Views
    G
    Ok, it seems, that suggestion by SGaist about installing OpenSSL was a solution(since Qt Creator in Windows supports only 32-bit projects, I installed 32-bit OpenSSL version), but I would like to know the mechanics why JavaScript from imported file requires it, but QML don't. Thanks, SGaist - I'm setting it as answered, as it at least solves my problem with importing JavaScript file and solves other logical coding problems.
  • The new MenuStyle in Qt 5.3 doesn't show sub menu indicator Image

    2
    0 Votes
    2 Posts
    1k Views
    Q
    Haven't found any response / solution yet; reported the following bug so that I don't forget later on: https://bugreports.qt-project.org/browse/QTBUG-39758
  • 0 Votes
    4 Posts
    940 Views
    J
    No problem :). Please at [solved] to the title for the other readers.
  • TabViewStyle: make tabs take all horizontal space

    6
    0 Votes
    6 Posts
    2k Views
    E
    That's it! Many thanks :)
  • Add Item to FileDialog?

    3
    0 Votes
    3 Posts
    1k Views
    H
    Ok, I will figure something out. Thank you.
  • I have a crash with ListView

    2
    0 Votes
    2 Posts
    1k Views
    shavS
    Hi everyone! Today I've tried to load new QtCreator from "master":http://download.qt-project.org/snapshots/qtcreator/master/2014-06-10_239/qt-creator-opensource-mac-x86_64-master.dmg and get the same crash after load QtCreator. The full crash log you can find "here":http://dshav.com/logs/qtcreator_crash.log. I've tried load QtCreator using Macbook Pro with Retina display and MacOS 10.10 Beta 2.
  • Setting Layout.fillWidth from C++

    2
    0 Votes
    2 Posts
    848 Views
    S
    Please tell me there is a better solution than this: @ /* in GenericNew.qml */ onChildrenChanged: { for(var ii = 0; ii < children.length; ++ii) { if(children[ii].objectName.search("attr-")>=0) { console.log(children[ii]) children[ii].Layout.fillWidth = true } } } @
  • Detect Clicks outside QML Window

    3
    0 Votes
    3 Posts
    2k Views
    U
    have Qt 5.3.0 on Mac. Does not work. 1 thing i should mention is that the documentation does not mention onActiveChanged for QML Window {} element. It is just that QWindow has it and hence available to QML as well. <1> What could be the issue/solution (or maybe there is some other way to do it) <2> Actually I am trying to make my own combobox. The DropDown is a Window {} with flag as Qt.Popup (or Qt.SplashScreen which produces less flickering when in full screen mode) which i need to close moment the user clicks anywhere outside it and hence i need to capture such a signal. Do you know of a better way to make such a drop down?
  • Dynamicly add c++class instances tu qml objects (not with listview)

    7
    0 Votes
    7 Posts
    2k Views
    jeremy_kJ
    Thanks for clarifying. Another option is to use Qt.createComponent() and createObject() from javascript. The documentation for createComponent covers usage pretty well. The QML dynamic scene example provides a demonstration. As long as it works for you, I would stick with the ListView.
  • QtQuickItem updatePaintNode

    2
    0 Votes
    2 Posts
    958 Views
    N
    bumping up
  • [SOLVED] Use relative path of qml file A in qml file B

    3
    0 Votes
    3 Posts
    2k Views
    D
    Works perfect, thanks :)
  • In qml, canvas width can not be longer than 8520, why?

    4
    0 Votes
    4 Posts
    2k Views
    M
    [quote author="jeremy_k" date="1401233474"]Based on the documentation for Canvas, I suspect you want to set canvasSize and canvasWindow, unless the display being targeted really is greater than 8520 pixels wide. For me with Qt 5.3.0 and XCB, a canvas with width or height greater than 8192 fails to render. I'm not sure where the limitation comes from, but the fact that it occurs above 8k seems noncoincidental. Does a width of 8519 work for you?[/quote] hi, thanks for your tips. I do not test such width 8519. but I guess the limitation is something to do with hardware platform, may be about the graphics chip. I port my qml code to arm platform(TI am335x, contex-A8).sadly,beyond my mind, the width can not more than 2400.
  • OpenGL context

    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    Don't forget to subscribe first
  • Recommended way to implement properties window in QML

    5
    0 Votes
    5 Posts
    2k Views
    X
    After some digging those are the two recommended ways I have found as well. Even though the hiding option apparently performs quite bad when you start to add more controls to the property window. So the loader seems to be the way to go. I did look into the QtCreator source they however seem to build up the control from text strings that are the individual components. Then they send the completed test to the Qml engine to build up all controls. Probably the most efficient way but it certainly doesn't seem to be simple or easy to maintain.
  • Difference between QQmlApplicationEngine and QtQuick2ApplicationViewer

    2
    0 Votes
    2 Posts
    2k Views
    V
    You can run QML profiler to test the speed.
  • Drawing irregular shapes

    2
    0 Votes
    2 Posts
    1k Views
    G
    Hi, You could try to do it in QML using a Canvas and http://qt-project.org/doc/qt-5/qml-qtquick-context2d.html#arc-method. I did it in C++ once and it worked out well, but the Canvas should work just as well.