Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • Android Google Play Services integration with qt5.2

    2
    0 Votes
    2 Posts
    2k Views
    B
    Hi. Take a look of this post "How to add google play services lib to qt for android":https://qt-project.org/forums/viewthread/40444
  • Searching for a particular entry in a table by lineedit

    4
    0 Votes
    4 Posts
    1k Views
    EddyE
    Hi Jens, Thanks for popping in on the forums regularly. Your insights are much appreciated here! Looking forward for the next blog!
  • [SOLVED] About showing QWindow

    5
    0 Votes
    5 Posts
    3k Views
    M
    oh , yes. i don't know that line but as you said i ignore it and this code works in PyQt: @import sys from PyQt5.QtCore import QUrl from PyQt5.QtGui import QGuiApplication from PyQt5.QtQml import QQmlApplicationEngine app = QGuiApplication(sys.argv) engine = QQmlApplicationEngine(QUrl("example.qml")) window = engine.rootObjects()[0] window.show() sys.exit(app.exec_())@ really thanks dear Xandar
  • Tabview issue

    6
    0 Votes
    6 Posts
    3k Views
    M
    Great, I'll just wait for 5.3 then. Thanks!
  • TableView: access model properties from delegate

    6
    0 Votes
    6 Posts
    2k Views
    J
    Note. Because of this inconsistence and after considerable debate we actually changed the behaviour of TableView in 5.3 to be more aligned with ListView. The "model" property in 5.3 should be the same as it is in ListView. If you try the 5.3 beta, it is already behaving like ListView. Unfortunately, this also means the proposed snippet above will actually stop working.
  • Rendering plugin QtQuick 2.0

    2
    0 Votes
    2 Posts
    768 Views
    J
    It is certainly possible. An example you might find interesting is "customgeometry":http://qt-project.org/doc/qt-5/qtquick-scenegraph-customgeometry-example.html. There are also some other relevant examples such as "textureinsgnode" in the "scenegraph" folder of your QtDeclarative examples directory if you have those installed.
  • Clearing all vertex GL data in QSGGeometry node in QQuickItem

    1
    0 Votes
    1 Posts
    474 Views
    No one has replied
  • Access to images in the databases from QML

    1
    0 Votes
    1 Posts
    475 Views
    No one has replied
  • [solved] Registering an ENUM in QML

    3
    0 Votes
    3 Posts
    4k Views
    J
    Xander84, your sample about enumerations it has been very useful. To access to the enumerated value is done in the same way as accessing to a property. Test { testEnum: Test.One } Joaquim Duran
  • Dragging between separate windows in Qml

    1
    1 Votes
    1 Posts
    2k Views
    No one has replied
  • Image with radius in QML

    13
    0 Votes
    13 Posts
    26k Views
    A
    [quote author="Brexis" date="1397022356"]Hi you can use an "OpacityMask":http://qt-project.org/doc/qt-5/qml-qtgraphicaleffects-opacitymask.html. Use a rounded image and mask your image with it.[/quote] Yes, that is a good solution!
  • Downloading qml files on Android and dynamically use them with QtQuick

    3
    0 Votes
    3 Posts
    1k Views
    D
    Thanks, I'll try that and hope that the Loader can find the downloaded files :) Edit: Ok, I have downloaded the qml file and now I know where it is saved: "/data/data/org.qtproject.example.MyApp/files" So it is placed into the private app directory. But how can I access this qml file now from my qml application?
  • How to structure qml app with several canvas/screens

    2
    0 Votes
    2 Posts
    921 Views
    J
    You can dynamically load and unload content. I use a mouse area that triggers a javascript function. That function uses "Qt.createComponent" to load a qml file.
  • Building a dynamic namespace for qml files (Qt.createQmlObject)

    1
    0 Votes
    1 Posts
    580 Views
    No one has replied
  • Running tests for key events in the background

    1
    0 Votes
    1 Posts
    560 Views
    No one has replied
  • QML Multimedia Key event

    1
    0 Votes
    1 Posts
    668 Views
    No one has replied
  • Changing width and height

    3
    0 Votes
    3 Posts
    937 Views
    1
    Works! Thank you :)
  • Q_PROPERTY NOTIFY during initialization race condition?

    13
    0 Votes
    13 Posts
    5k Views
    U
    This is frustrating because this is a significant problem for me. In the cases were this fails I can see that QML has already called the property accessor so QML should have connect all signals and slots so I don't feel I'm emitting a signal at an inappropriate time.
  • Camera based QML element

    1
    0 Votes
    1 Posts
    747 Views
    No one has replied
  • How to access listview current item from other item?

    7
    0 Votes
    7 Posts
    9k Views
    X
    hey, I modified your code a little look at this: @ //:D import QtQuick 2.0 Rectangle { id: root; height: 500; width: 500; Column { ListView { id: lv; height: 400; width: root.width; clip: true; orientation: ListView.Horizontal snapMode: ListView.SnapOneItem;// added new :D model: ListModel{ id: model; ListElement{ name :"1"; } ListElement{ name :"2"; } ListElement{ name :"3";} ListElement{ name :"4";} } delegate: com; } Text { id:txt; height:100; width:root.width; text: lv.currentItem.name; // now you can use currentItem.name to access the property of the delegate } } Component { id: com; Rectangle { id: rec property alias name: rectext.text // added this property alias to access the text of the current list item height: 400; width: root.width; Text { id: rectext; anchors.centerIn: parent; text: model.name; } MouseArea { anchors.fill: parent onClicked: { lv.currentIndex = index // you used listView.currentIndex here? } } } } } @ I've added a property to access the text and your MouseArea to the delegate, that works fine and you can use it, see my comments in the code. Might not be perfect because it only changes the index if you click on the item, not on you drag/swipe it, but that is another problem for now I think.. maybe you find a solution to that.