Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • [Solved] QML import path

    3
    0 Votes
    3 Posts
    6k Views
    A
    Well I'm thoroughly confused. I got up this morning happy to see shav's post. I go to try it out but everything is already working. The only thing I can think of is that a system restart made Qt rejigger itself and recognise the stuff in its imports folder. Thanks shav for your reply. I'll mark the topic solved because I no longer have the problem. Marking it 'Waste of Everybody's Time' might be better though!
  • EvaluateJavaScript doesn’t work in BlackBerry 10 - QML

    2
    0 Votes
    2 Posts
    709 Views
    J
    Wait help (:
  • How to choose a Qt Quick componenet set ?

    4
    0 Votes
    4 Posts
    1k Views
    Y
    Ok , It became clear now . thanks to you .
  • Draw texture in QQuickPaintedItem

    2
    0 Votes
    2 Posts
    2k Views
    sierdzioS
    Why use QPainter? QtQuick already has helper methods for drawing textures, no need to dive into QPainter and OpenGL code. You can see an example here: "link":https://github.com/sierdzio/closecombatfree/blob/master/src/qmlBase/ccfqmlbasemap.cpp#L66.
  • ScrollView drag event

    2
    0 Votes
    2 Posts
    908 Views
    dheerendraD
    which frame you are talking about ? Is it the ScrollBar slider you are talking ?
  • Grid behavior when there are too many items?

    4
    0 Votes
    4 Posts
    1k Views
    dheerendraD
    This looks like a bug to me. If there are more items, it should clip the last item. It is odd that it starts putting the items at the top corner again.
  • [SOLVED] QSGVertexColorMaterial alpha value not working?

    5
    0 Votes
    5 Posts
    3k Views
    L
    That makes sense. Thanks for the answer :) I confirmed what you said by switching the background color to white (so I can see a black line) and the vertex color to r=0, g=0, b=0, a=0 (invisible black). Now when I switch a from 0 to 255 I get what I was expecting.
  • [SOLVED] Devices management in ListView

    9
    0 Votes
    9 Posts
    2k Views
    D
    Thanks! Love so much the Qt community full of kind and helpful people. :)
  • [SOLVED] QPaintedItem : Update don't call paint()

    10
    0 Votes
    10 Posts
    5k Views
    p3c0P
    Ok. You're Welcome. Happy Coding :)
  • Set Digital zoom in Camera

    6
    0 Votes
    6 Posts
    2k Views
    B
    hey i am sorry...i had put wrong code...digitalZoom is read only property.. @ if(cameraPage.isCamera == true){ cameraBack.setDigitalZoom = pinch.scale } @ This doesnt complete my problem...as pinch.scale only holds the distance b/w two points.Everytime i start pinch ,pinch.scale becomes default to 1.0..so i have to add @cameraBack.setDigitalZoom=pinch.scale-1.0 + pinch .previousScale @ I am working on it still... Thanks :-)
  • 0 Votes
    4 Posts
    3k Views
    R
    Looks great, thanks!
  • Filling a listView model in seperate Thread .

    10
    0 Votes
    10 Posts
    7k Views
    R
    Thanks for your response. But worker script are only a .js script which means that there is no interaction with C++ components. It is here only to perform some local processing on the QtQuick context.
  • Maps in QtQuick (Qt 5.3)

    4
    0 Votes
    4 Posts
    2k Views
    sierdzioS
    You can remove the Rectangle, and you need to add this to WebView: @ anchors.fill: parent @
  • Auto-reformatting rows based on number of QML Elements

    7
    0 Votes
    7 Posts
    2k Views
    sierdzioS
    As far as I know, you have no control over alignment in Flow. Maybe there is some way by - example - using attached properties, but I doubt it. You can probably achieve good results by carefully sizing the Flow element and it's contents, but that is not possible in all situations + quite fragile. An alternative would be to use the "Grid":http://qt-project.org/doc/qt-5/qml-qtquick-grid.html element.
  • Signal that a component is completed AND visible?

    5
    0 Votes
    5 Posts
    4k Views
    M
    not really. Just tried the signals and status info of the Loader component, but it seems that those signals are also emitted just before the new screen visible. I think I'll do my UI a bit differently to avoid this kind of issues. Nevertheless: THANKS for helping!
  • Storing, loading and working with dynamically created QML objects

    3
    0 Votes
    3 Posts
    2k Views
    R
    The problem is, that I want multiple instances of the WorkSpace.qml and change their properties independently. E.g. I want 3 instances of WorkSpace.qml. One with a green, one with a blue and one with a yellow color. I've managed to solve this now by using createComponent and then using component.createObject and storing the result of this in an array. Then I just display the currently active workspace and hide all the others. This way, each instance of the WorkSpace.qml is kept in memory during run time and I can change all their properties independently.
  • 0 Votes
    3 Posts
    2k Views
    D
    Cool! I added anchors.left and leftMargin for each button. Your method is much shorter. Thanks!
  • Designer very slow

    2
    0 Votes
    2 Posts
    910 Views
    Y
    For the moment I install dual boot linux and qt works very well. I do all the design linux part and then I transfer the Mac project for the whole game on the code (especially for iOS development). I'll wait for the next version of qt. Meanwhile better. Best regards.
  • Resize rectangle when the main qml view resized

    6
    0 Votes
    6 Posts
    10k Views
    p3c0P
    AFAIK, what you can do is instead of @ Rectangle{ width: 400; height: 400 @ set it to @ Rectangle{ anchors.fill: parent @ and then from where you load this QML file, assuming you are using QQuickView @ view.setResizeMode(QQuickView::SizeRootObjectToView); view.resize(400,400); @ So here we are actually resizing the view instead of rootItem i.e Rectangle but this needs QQuickView::SizeRootObjectToView as ResizeMode so that the Rectangle resizes to the view size.
  • [SOLVED] OpenGL painting inside QML

    2
    0 Votes
    2 Posts
    959 Views
    strahlexS
    I solved it by using a QQuickPaintedItem and implementing my OpenGL calls between painter->beginNativePainting() and painter->endNativePainting() in the paint function. I had to use a YIntertedFrameBuffer as render target of the QQuickPaintedItem