Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • Problem with selecting next/previowus record

    Unsolved
    16
    0 Votes
    16 Posts
    814 Views
    Karoluss96K
    This is a QGIS plugin with GUI, so it isn't possible to put it outside of QGIS program (which you can download for free here: https://qgis.org/pl/site/forusers/download.html)
  • ListView and keyboard and no bouncing.

    Solved
    2
    0 Votes
    2 Posts
    230 Views
    sierdzioS
    Set interactive to false, implement custom handlers for keys using Shortcut or Keys or keyNavigationEnabled https://doc.qt.io/qt-6/qml-qtquick-listview.html#keyNavigationEnabled-prop (you can use ListViews methods like flick()), and bouncing can be controlled via properties like boundsBehavior https://doc.qt.io/qt-6/qml-qtquick-flickable.html#boundsBehavior-prop.
  • Padding in text field with Text.AlignHCenter

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    JoeCFDJ
    Just tested it. It aligned to the left. But set the width property. horizontalAlignment doesn't usually work without it. Now the following code works for both import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Controls 2.2 import QtQuick.Layouts 1.3 Window { width: 640 height: 480 visible: true title: qsTr("Hello World") ColumnLayout { width: 100 height: 50 Item { Layout.fillWidth: true Layout.fillHeight: true TextField { //anchors.fill: parent horizontalAlignment: Text.AlignHCenter selectByMouse: true width : 100 focus: true text: "fwqfwqfwqfwqfwqfwqfwqfwqfwqfwqfwqfwqfwqfwqfwqfwqfwqfwq" // text: "fwq" } } } }
  • Qt 6.4 application crash in debug with QML Dialog component

    Solved
    2
    0 Votes
    2 Posts
    410 Views
    V
    Workaround: to off "Show QML object tree" in Preferences -> Debuger -> General Now I can run and debug.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    14 Views
    No one has replied
  • [Quick3D] Import skeleton data from model

    Unsolved
    2
    0 Votes
    2 Posts
    174 Views
    No one has replied
  • How to use variable from one qml to another qml

    Unsolved
    2
    0 Votes
    2 Posts
    252 Views
    JoeCFDJ
    if they share the same parent, define it inside the parent qml? If not, define it in a settings class(for example GlobalSettings).
  • Error found when trying to build a qml based application - Module(s) Error

    Unsolved
    4
    0 Votes
    4 Posts
    267 Views
    jsulmJ
    @nadimnadaf Are you sure you're using Qt installed via Maintenance Tool and not the one provided by Ubuntu? Check the Kit you're using.
  • QSqlQueryModel making singleton and also update tableview

    Unsolved
    1
    0 Votes
    1 Posts
    130 Views
    No one has replied
  • <Unknown File> ... Binding loop detected for property "topMargin"

    Unsolved
    1
    0 Votes
    1 Posts
    249 Views
    No one has replied
  • 3-dimensional model

    Solved
    7
    0 Votes
    7 Posts
    416 Views
    Y
    Thanks, Your solution works ! But the two lines below were not a concern as color: model["color"] worked fine property var sourcemodel: model color: sourcemodel.color what solved my issue in your response is model: runList My understanding was that model["runList"] and model: runList were equivalent, just needed for desambiguation. I had wrong but don't know why... @fcarney thanks for your patience, that solved my issue !
  • Model View customized requirement

    Unsolved
    8
    0 Votes
    8 Posts
    562 Views
    GrecKoG
    How are the cell positions determined? A GridLayout + a Repeater could work.
  • How to increase the font size of keys in virtual Keyboard

    Unsolved
    1
    0 Votes
    1 Posts
    166 Views
    No one has replied
  • Show a 3d point cloud with shaders

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    D
    Hi! Could you describe how you did it? I cannot use "points" custom geometry, due to small size of points (and cannot change their size because there are some Direct3D limitations, as stated in docs: https://doc.qt.io/qt-6/qml-qtquick3d-defaultmaterial.html#pointSize-prop )
  • Mouse Hover Problem Sporadically

    Unsolved
    13
    0 Votes
    13 Posts
    674 Views
    jsulmJ
    @Neku https://en.wikipedia.org/wiki/Minimal_reproducible_example
  • 0 Votes
    5 Posts
    359 Views
    L
    @aiden_ as the highlight is not inside the delegate "loop" you can't access the model properties as inside the delegate. Therefore you could e.g. do something like this: // read the hcolor value from the ListModel itself highlight: Rectangle { color: bestModel.get(best.currentIndex).hcolor } also you could add a property to the delegate item and reference to this property: delegate: Text { // property used to be accessed by currentItem of ListView property color highlightColor: hcolor // model. -> required because of ambiguous "text" property text: model.text // model. -> not required as "mcolor" is not ambiguous color: mcolor } highlight: Rectangle { color: best.currentItem.highlightColor }
  • implicitHeight works differently in different controls

    Solved
    2
    0 Votes
    2 Posts
    315 Views
    I
    Thanks to Mitch Curtis. He answered me: However, it's working as expected: the size of the Button is as you requested. However, because the Material style Button uses positive insets for the elevation drop shadow effect, the background is pushed inwards: https://doc.qt.io/qt-6/qml-qtquick-controls2-control.html#control-layout Oh, right, I forgot to mention the solution: set topInset and bottomInset to 0.
  • QtQuick TableView lazy loading / fetchMore support

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    Y
    Maybe you should use DelegateModel. eg: TableView { model: DelegateModel { model: xxx delegate: xxx } }
  • Qt 6.3 FileDialog does not show "Save" button on Raspberry Pi OS

    Unsolved
    1
    0 Votes
    1 Posts
    135 Views
    No one has replied
  • HorizontalHeaderView can be aligned left?

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