Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • QT Creator Mouse

    1
    0 Votes
    1 Posts
    572 Views
    No one has replied
  • Import data (XML file) from URL

    8
    0 Votes
    8 Posts
    3k Views
    J
    Maybe the same as above says. Download html file via QNetworkAccessManager, and deal it using C++ string functions yourself, then bring it to QML.
  • QQuickView to FBO to OpenGL texture

    5
    0 Votes
    5 Posts
    3k Views
    J
    I were doing the same thing before, but that I don't use any RTT feature , instead I use normal rendering pipeline. I don't know if it is faster when using RTT. Here is my blog and code talking about this. http://blog.csdn.net/gamesdev/article/details/38024327
  • 0 Votes
    1 Posts
    626 Views
    No one has replied
  • Flickable onMouseXChanged

    8
    0 Votes
    8 Posts
    2k Views
    p3c0P
    Ok. And don't forget to add anchors.fill: parent in MouseArea so that it covers the whole Flickable Item. You can mark the post as solved.
  • Qml gui and nogui mode[solved]

    14
    0 Votes
    14 Posts
    4k Views
    SGaistS
    You're welcome ! Since you have it running now, please update the thread title prepending [solved] so that other forum users may know a solution has been found :)
  • QML Mouse onReleased Happening before onClicked(Solved)

    8
    0 Votes
    8 Posts
    3k Views
    H
    Ok, thank you all, I will do it.
  • Expanding the Window when clicked

    6
    0 Votes
    6 Posts
    1k Views
    p3c0P
    Well i see multiple issues here, The handler is onDoubleClicked and not doubleClicked so change it. Since you want to change the height of Rectangle you must refer to it in MouseArea using the id of Rectangle or since it's a parent of MouseArea you can use parent. No need to use binding there. So, @ MouseArea { id: mouseArea1 onDoubleClicked:{ parent.height =400 } } @ Also you need not specify width and height for MouseArea since you are already filling it to parent's width and height.
  • [QTBUG-26330]QML WebView resizing and redraw bug?

    15
    0 Votes
    15 Posts
    7k Views
    M
    If anyone is interested in at least having a quick fix, you can disable the WebView's rendering during the resize by using a timer. My fix looked a bit like this: @Item { id: root onWidthChanged: renderingTimer.restart(); onHeightChanged: renderingTimer.restart(); Timer { id: renderingTimer; onRunningChanged: webView.renderingEnabled = !running; interval: 100; } WebView { id: webView preferredWidth: root.width preferredHeight: root.height } }@ With the item object placed inside a Flickable. If you have a better fix, don't hesitate to correct me.
  • QML-Designer and external Components

    4
    0 Votes
    4 Posts
    1k Views
    F
    Did you try QML2_IMPORT_PATH in environment? Not QML_IMPORT_PATH. For the pro file, try full path for QML_IMPORT_PATH first, instead of using MW_ROOT_PATH. Eg: @ QML_IMPORT_PATH += "/home/foo/src/hmi/MwQml/qml" @
  • Trouble with calling a cpp method from qml

    5
    0 Votes
    5 Posts
    1k Views
    Y
    Tomme Thank you I appreciate your help . Actually since I couldn't handle mixing qml with c++ I decided to use Qt designer instead for my project , but I will try this later .
  • Upgrading from qt quick ui

    1
    0 Votes
    1 Posts
    449 Views
    No one has replied
  • Obtain object type string from QML

    8
    0 Votes
    8 Posts
    8k Views
    I
    I mean that if we using objectName() method that we must set this property to all instances of class in constructor or in other places. For example: @ MyObject1() { // setObjectName("MyObject1"); // or setObjectName(metaObject()->className()); } @ or as you wrote: @ Text { id: mytext objectName: "MyTextObject" anchors.centerIn: parent text: "Hello, World!" } @ But if we using className wrapper property than we may define this methods in our class declaration. And this is allow to us to making safe inheritance from MyObject1: for subclasses className() return actual className! @Q_PROPERTY(QString className READ className CONSTANT) QString className() { return metaObject()->className(); }@ and we can using objectName for other purposes, for example: @ MyObject1 objA = new MyObject1(); objA.setObjectName("A"); MyObject1 objB = new MyObject1(); objB.setObjectName("B"); @ This is can be useful for debugging.
  • Webview not scrollable using QtWebKit 1.0

    1
    0 Votes
    1 Posts
    635 Views
    No one has replied
  • [Solved] Trigger custom QML handler from c++

    6
    0 Votes
    6 Posts
    2k Views
    G
    Oh yes, that was the missing part. now its working and its awsome. Thanks for the help.
  • Saving html content with images

    1
    0 Votes
    1 Posts
    543 Views
    No one has replied
  • Dynamic change text direction

    10
    0 Votes
    10 Posts
    3k Views
    p3c0P
    Can you post the relevant code where it shows the binding to horizontalAlignment ?
  • How to hide underline when assigning link inside a Text element

    4
    0 Votes
    4 Posts
    2k Views
    J
    Thank you all. The problem has been resolved.
  • Canvas resize

    12
    0 Votes
    12 Posts
    4k Views
    p3c0P
    That's strange. Did you notice anything during reinstallation that you might have missed in first ?
  • [Solved]Re position an animated object to previous location

    3
    0 Votes
    3 Posts
    902 Views
    E
    [quote author="p3c0" date="1408965760"]Hi, You can use "reversible":http://qt-project.org/doc/qt-5/qml-qtquick-transition.html#reversible-prop property in states and transitions.[/quote] Ah, ok. Not as complicated as I would've thought. Thx