Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • ScrollBar doesn't match Flickable contents

    Solved
    7
    0 Votes
    7 Posts
    582 Views
    mzimmersM
    @johngod thank you -- that fixed it. (I had the contentHeight in my real code; I just left it out for brevity.) I was missing the anchors.rightmargin setting. I do find it a bit surprising that QML doesn't have a more "automated" method for doing this - after all, nobody is going to want their content to overlap their scroll bar - but this works, so I'll run with it. Thanks again...
  • How to blur everything behind the Item

    Unsolved
    1
    0 Votes
    1 Posts
    193 Views
    No one has replied
  • How can I set an Item setup using Repeater ?

    Unsolved
    1
    0 Votes
    1 Posts
    115 Views
    No one has replied
  • Floating rectangles

    Solved float rectangle fluid
    3
    0 Votes
    3 Posts
    625 Views
    C
    @GrecKo Perfect, thanks!
  • 0 Votes
    3 Posts
    978 Views
    GrecKoG
    Use a SequentialAnimation and put a PauseAnimation in it first, with a duration depending on the index of the delegate.
  • Get mose position when use onWheel from MouseArea

    Solved
    2
    0 Votes
    2 Posts
    215 Views
    jsulmJ
    @Mihaill I guess by using https://doc.qt.io/qt-6/qml-qtquick-wheelevent.html parameter?
  • How load data (tiles) for Map and Plugin from local file

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    M
    I found tis https://developers.arcgis.com/qt/qml/sample-code/open-mobile-map-map-package/ https://developers.arcgis.com/qt/qml/sample-code/open-map-url/ https://community.esri.com/t5/arcgis-runtime-sdk-for-qt-questions/dynamically-load-tile-package-in-qml/td-p/668233 https://stackoverflow.com/questions/29120160/qt-qml-how-to-include-map-tiles-for-offline-usage https://stackoverflow.com/questions/36647616/use-an-offline-interactive-map-in-qml https://www.qt.io/blog/2017/05/24/qtlocation-using-offline-map-tiles-openstreetmap-plugin
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • mapboxgl geoservices provider is not supported.

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    J
    Hi, have you been able to solve this issue
  • The possibility of starting qt program before udev starts

    Unsolved
    1
    0 Votes
    1 Posts
    150 Views
    No one has replied
  • Linux Desktop App follow system Theme

    Unsolved
    1
    0 Votes
    1 Posts
    282 Views
    No one has replied
  • use of font property in TabBar

    Solved
    4
    0 Votes
    4 Posts
    410 Views
    mzimmersM
    Through some experimentation, I discovered this: import QtQuick import QtQuick.Controls ApplicationWindow { visible: true width: 800 height: 480 TabBar { id: navTabs property font myFont: Qt.font({ family: "Helvetica", weight: Font.DemiBold, pixelSize: 48 }) TabButton { width: 200 font: navTabs.myFont text: font.weight + " " + font.pixelSize } TabButton { font.family: navTabs.myFont.family font.weight: Font.Light font.pixelSize: navTabs.myFont.pixelSize text: font.weight + " " + font.pixelSize } } } The first TabButton references the TabBar font property as a unit, and as such, can't modify any of the fields (like weight). The second TabButton, though, only uses fields within the font property, and can set whatever it wants. I did uncover another problem here, though - this only works if the TabButtons explicitly reference navTabs. If I try to use parent instead, I get errors suggesting that the parent is undefined. In my example, is the TabBar not the parent of the TabButtons? EDIT: According to this, the answer is no. Any ideas on how to deal with this? EDIT 2: My original question is answered, so I'll mark this solved and start a new topic.
  • Detectiong right/left clicking the mouse wheel

    Solved
    2
    0 Votes
    2 Posts
    188 Views
    C
    I found the solution. The angleDelta property has the x coordinate not 0 when the horizontal scroll was used.
  • 0 Votes
    3 Posts
    385 Views
    V
    I've created bug about it: https://bugreports.qt.io/browse/QTBUG-108610
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    48 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    3
    0 Votes
    3 Posts
    30 Views
  • Painting images over qml maps

    Unsolved qml qml map qml rendering qml c++ c++ qt
    1
    1 Votes
    1 Posts
    480 Views
    No one has replied
  • How is this done?

    Unsolved
    11
    0 Votes
    11 Posts
    1k Views
    T
    Hi @SPlatten, as per my understanding totalWaterDepth is some Q_PROPERTY of a cpp class and qml uses the object of that particular class clubbed with . to access it.
  • CMake Error: The inter-target dependency graph contains cycle

    Unsolved
    1
    0 Votes
    1 Posts
    525 Views
    No one has replied
  • How to create this virtual gamepad UI in qml?

    Unsolved
    1
    0 Votes
    1 Posts
    426 Views
    No one has replied