Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • Expose a List or Array of QDeclarativePropertyMap

    2
    0 Votes
    2 Posts
    888 Views
    M
    Have a look at the solution posted "here":http://qt-project.org/forums/viewthread/26191/P15.
  • How to get QQmlEngine from QQuickItem

    4
    0 Votes
    4 Posts
    6k Views
    M
    Yeah I thought there must be a more direct approach to this, I just couldn't find anything in the docs. Thanks Chris.
  • Is this flash plugin problem.....??

    3
    0 Votes
    3 Posts
    1k Views
    S
    main.qml import QtQuick 1.0 import QtWebKit 1.0 Rectangle { id:main width: 1280 height: 800 Button{ id: button height: 50 width: 100 anchors.centerIn: parent onButtonClicked: { console.log("Mouse was clicked"); brow.visible = true; brow.urlString = "some url with flash plugin"; console.log("url:",brow.urlString); } } WebBrowser{ id: brow visible: false } } WebBrowser.qml: import QtQuick 1.1 import QtWebKit 1.0 Rectangle { id: webTray width: 1280 height: 800 property string urlString: "" Button { id: callaccept y: 0.01*webTray.height anchors.right: webTray.right; anchors.rightMargin: 0.05*webTray.width displayText: "Quit"; width: 0.05*webTray.width; height: 0.04*webTray.height; onClicked: { console.log("clicked on quit"); brow.visible = false; brow.urlString = "" console.log("browser is visible?:",brow.visible); } } Rectangle { width: webTray.width; height: 2; color: "silver"; anchors.bottom: web.top; } height: 50 width: 100 anchors.centerIn: parent onButtonClicked: { WebView { id: web preferredWidth: webTray.width preferredHeight: webTray.height - 0.06*webTray.height; y: 0.06*webTray.height transformOrigin: Item.TopLeft settings.pluginsEnabled: true url: webTray.urlString smooth: false onAlert: console.log(message) } }
  • Use index in a ListView delegate

    6
    0 Votes
    6 Posts
    5k Views
    W
    Ok, thanks. It's fixed and thread can be closed.
  • 0 Votes
    1 Posts
    699 Views
    No one has replied
  • QtDesktop & Qt components for desktop with Qt 5

    4
    0 Votes
    4 Posts
    4k Views
    T
    Thanks guys - I can't update to a prerelease version of Qt for this project (in fact, one of the platforms that I'm developing for is actually on Qt 4.6 and will require special qwidget-based forms rather than the spiffy new qml forms I'm building). I guess if this doesn't work easily with 5.0, then I'm pretty solidly on 4.8. I'll try building what's in the public repository on gitorious for 4.8.
  • [SOLVED]Q_PROPERTY QString linking qml and c++ giving "undefined" error

    3
    0 Votes
    3 Posts
    8k Views
    B
    Thanks a lot! It really works as supposed now. Thank You.
  • Qt 4.7.4 qml/c++ app under valgrind

    2
    0 Votes
    2 Posts
    1k Views
    L
    ps - I dont see the same stuff when running valgrind on minehunt
  • QML Canvas causing crash

    4
    0 Votes
    4 Posts
    2k Views
    S
    Bug reported with sample project here: https://bugreports.qt-project.org/browse/QTBUG-30810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel
  • Load custom textures - QSGSimpleMaterialShader

    1
    0 Votes
    1 Posts
    904 Views
    No one has replied
  • Simultaneously touch two MouseAreas issue

    2
    0 Votes
    2 Posts
    926 Views
    T
    MouseArea is not suitable for multitouch. They only handle mouse events. Try "MultiPointTouchArea":http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick2-multipointtoucharea.html for touch events. There is also "TouchArea":http://qt.gitorious.org/qt-labs/qml-toucharea/ for Quick1
  • ListView select newly added item

    1
    0 Votes
    1 Posts
    621 Views
    No one has replied
  • SequentialAnimation, how to reduce the gap.

    1
    0 Votes
    1 Posts
    691 Views
    No one has replied
  • Best practice: Integrate .js file to a project

    5
    0 Votes
    5 Posts
    2k Views
    I
    this doesn't work for me. The program didn't find the file. Perhaps this is because of my mac system. But in Qt Creator this is an error, too.
  • [SOLVED] Installing QtQuick Controls

    21
    0 Votes
    21 Posts
    34k Views
    J
    weiyuemin: That worked. thanks!
  • Combining ParentChange with AnchorChanges

    9
    0 Votes
    9 Posts
    2k Views
    M
    Thanks maxus for posting your find! It makes sense now.
  • Call .qml from javascript

    4
    0 Votes
    4 Posts
    1k Views
    M
    Put your javascript logic that populates your controls in the QML source or pass the QML item reference (id) over to your javascript librarys functions as an argument?
  • "Proper" way of handling events for a node-based editor / system.

    5
    0 Votes
    5 Posts
    2k Views
    U
    Too bad there is no childAt() method in QML.
  • 0 Votes
    3 Posts
    2k Views
    I
    Thank you, @moeg687 ! This helped a lot.
  • [SOLVED] TypeError: Object has no method 'process' - BUT IT HAS

    3
    0 Votes
    3 Posts
    1k Views
    U
    Yep, one more time I forget to include the Q_OBJECT macro - IDE code generation is spoiling me.