Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • Qml video problem ...

    4
    0 Votes
    4 Posts
    2k Views
    M
    No. This signal is emitted when the scene graph has been invalidated. This signal implies that the opengl rendering context used has been invalidated and all user resources tied to that context should be released. The signal just informs you that the scene graph has been invalidated and that the OpenGL context has been released. Have a look at this "page.":http://doc-snapshot.qt-project.org/5.0/qtgui/qopenglcontext.html. If the context is temporarily not needed, such as when the application is not rendering, it can be useful to call destroy() to free resources. However, if you do so you will need to call create() again before the context can be used, and you might need to recreate any OpenGL resources and reinitialize the OpenGL state. You can connect to the aboutToBeDestroyed() signal to clean up any resources that have been allocated with different ownership from the QOpenGLContext itself. Have you confirmed that this is in fact your problem. Have you checked that this signal is being emitted? If not then my suggestions might not be so helpful.
  • Save QQuickView screen to image

    6
    0 Votes
    6 Posts
    4k Views
    M
    Yes that is true. You can get a texture from a "QQuickItem":http://qt-project.org/doc/qt-5.0/qtquick/qquickitem.html only if it is a "textureProvider":http://qt-project.org/doc/qt-5.0/qtquick/qquickitem.html#textureProvider. At a quick glance, there doesn't seem to be anything that exposes an objects' pixmap.
  • 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.