Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • implicitHeight works differently in different controls

    Solved
    2
    0 Votes
    2 Posts
    316 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
  • ApplicationWindow width and height is not setting properly on Visibility changed

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

    Solved
    4
    0 Votes
    4 Posts
    361 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
    591 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
    387 Views
    No one has replied
  • Qt Create Qquickwindow with Qquickrendercontrol in another thread

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

    Solved
    4
    0 Votes
    4 Posts
    579 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
    292 Views
    M
    Thank you, good to know.
  • Is it possible to load QtCharts library with only QML without Qt/C++?

    Unsolved
    7
    0 Votes
    7 Posts
    827 Views
    piervalliP
    @fcarney We can write a core where you can espose all method to Qml. In this way UI can be adapted many screen without change the core.
  • how to recall a destroyed element in Qml?

    Unsolved
    3
    0 Votes
    3 Posts
    460 Views
    JoeCFDJ
    @fcarney https://doc.qt.io/qt-6/qtqml-javascript-dynamicobjectcreation.html destroy() does exist. I would use loader to recreate treebuttonUnmappedIn when it is recalled.
  • QQuickWindow::createTextureFromImage cant generate QSGTexture with mipmap

    Unsolved
    1
    0 Votes
    1 Posts
    161 Views
    No one has replied
  • QML_INTERFACE example

    Unsolved
    3
    2 Votes
    3 Posts
    820 Views
    JarrodJ
    @GrecKo said in QML_INTERFACE example: A QML_INTERFACE should not inherit from QObject Hi @GrecKo how did you determine this, can you point to some docs for further reading? I'm also confused by how these macros should be used correctly and in which circumstances. In my case I have a class A with some functions that are pure virtual. Subclasses of this are registered via qmlRegisterType(). I have another base class B with sub classes that are also registered. B has a property of type A.
  • How to use View3D.rayPick on QtQuick3D

    Unsolved
    1
    0 Votes
    1 Posts
    140 Views
    No one has replied
  • Dynamically add tabs - declarative approach?

    Solved
    4
    0 Votes
    4 Posts
    500 Views
    fcarneyF
    Models in QML depend upon notification. This will update when changing things in the model because it has notification signals: ListModel { id: lmodel } Repeater { model:lmodel } This will not if you try and modify vmodel elements (unless the change causes the vmodel variable itself to change): property var vmodel: [1,2,3] Repeater { model: vmodel } So code like vmodel.push(4) won't provide signals to change for the repeater to see.
  • How to send keyboard input under wayland?

    Unsolved
    1
    0 Votes
    1 Posts
    249 Views
    No one has replied
  • best way to remember informations about opened files

    Unsolved
    9
    0 Votes
    9 Posts
    710 Views
    JonBJ
    @jsulm said in best way to remember informations about opened files: calculate hashes from the content of both files using https://doc.qt.io/qt-5/qcryptographichash.html @tubbadu I don't believe you need any kind of cryptographic hash for your purpose of hash-content-for-compare. I believe Qt gives you an adequate implementation for your purpose in e.g. uint qHash(const QByteArray &key, uint seed = 0).