Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.7k Posts
  • QSqlQueryModel making singleton and also update tableview

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

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

    Solved
    7
    0 Votes
    7 Posts
    423 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
    577 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
    173 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
    712 Views
    jsulmJ
    @Neku https://en.wikipedia.org/wiki/Minimal_reproducible_example
  • 0 Votes
    5 Posts
    375 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
    327 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
    140 Views
    No one has replied
  • HorizontalHeaderView can be aligned left?

    Unsolved
    1
    0 Votes
    1 Posts
    168 Views
    No one has replied
  • ApplicationWindow width and height is not setting properly on Visibility changed

    Unsolved
    1
    0 Votes
    1 Posts
    156 Views
    No one has replied
  • QML Serial: Multiple qml files using 1 serial port

    Solved
    4
    0 Votes
    4 Posts
    377 Views
    T
    @sierdzio I found it...because I used Component "SerialPort" for each Item. So that created new Object . I try change qmlRegisterType -> QQmlComtext and it worked ...Thank you for your supporting. Have good day!!
  • Start animation with click on mouse area

    Solved
    4
    0 Votes
    4 Posts
    602 Views
    sierdzioS
    Most probably, yes.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Qt6.2.3 - QQuickWidget - QtQuick.Studio.Components ..

    Unsolved
    1
    0 Votes
    1 Posts
    392 Views
    No one has replied
  • Qt Create Qquickwindow with Qquickrendercontrol in another thread

    Unsolved
    1
    0 Votes
    1 Posts
    153 Views
    No one has replied
  • Problem in handling parallel states in Qt/Qml

    Solved
    4
    0 Votes
    4 Posts
    596 Views
    GrecKoG
    Or don't use states at all. import QtQuick 2.0 import QtQuickUltralite.Extras 2.0 Item { id: signal property bool show: false property bool showtwo: false Rectangle{ id: rect1; width: 50; height: 50; color: "green"; visible: !signal.show } Rectangle{ id: rect2; y:100; width: 50; height: 50; color: "red"; visible: signal.show } Rectangle{ id: rect3; x:100; width: 50; height: 50; color: "yellow"; visible: !signal.showtwo } Rectangle{ id: rect4; x:100; y:100; width: 50; height: 50; color: "black"; visible: signal.showtwo } Timer { running: true; repeat: true; interval: 1000 onTriggered: { console.log(signal.show); signal.show = !signal.show; signal.showtwo = !signal.showtwo; } } }
  • Future of QtLocation?

    Solved
    3
    0 Votes
    3 Posts
    305 Views
    M
    Thank you, good to know.