跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k 主題 77.4k 貼文
  • How to recieve dynamic variable from qml with QT webchannel in html side?

    Unsolved
    1
    0 評價
    1 貼文
    135 瀏覽
    尚無回覆
  • High CPU usage with basic QML animation

    Unsolved
    6
    0 評價
    6 貼文
    3k 瀏覽
    H
    Here is a bug report: https://bugreports.qt.io/browse/QTBUG-99525 Please vote/watch it if you face the same problem.
  • console.log formatting

    Unsolved
    3
    0 評價
    3 貼文
    525 瀏覽
    D
    OK thanks. The qt docs strongly imply that QML supports Javascript, but I guess it's a subset.
  • Rescaling right axis in QtQuick ChartView rescales the left one and vice-versa

    Unsolved
    1
    0 評價
    1 貼文
    151 瀏覽
    尚無回覆
  • display math formulas using label in qml

    Solved
    5
    0 評價
    5 貼文
    948 瀏覽
    raven-worxR
    @qAminzzz if you know the formulas and they are static (always the same), then simply render them to an image and then display them on the label: https://math.tools/equation/image
  • QML DateTimeAxis show UTC time

    Unsolved
    1
    0 評價
    1 貼文
    578 瀏覽
    尚無回覆
  • SVGs used for button icons are fuzzy on HighDPI devices

    Unsolved
    1
    0 評價
    1 貼文
    273 瀏覽
    尚無回覆
  • QGuiApplication palette not set to ApplicationWindow

    Unsolved
    3
    0 評價
    3 貼文
    321 瀏覽
    I
    It only works if you use the Fusion-style. The documentation states: The Fusion style uses the standard system palettes to provide colors that match the desktop environment.
  • ApplicationWindow not calling onClosing on cmd+q on macOS

    Solved
    3
    0 評價
    3 貼文
    529 瀏覽
    E
    I've found a much simpler (and maybe obvious?) workaround! Just capture the Quit menu on macOS: // (...) import Qt.labs.platform ApplicationWindow { id: mainwindow // (...) MenuBar { id: menubar // (...) Menu { title: "" MenuItem { id: quitaction text: qsTr("&Quit") shortcut: StandardKey.Quit onTriggered: mainwindow.close() } } } }
  • Add an image to a QML project built by CMake

    Unsolved
    1
    0 評價
    1 貼文
    489 瀏覽
    尚無回覆
  • How do I load all files in a resource directory in one method

    Unsolved
    4
    0 評價
    4 貼文
    826 瀏覽
    raven-worxR
    @AI_Messiah from QML-only via FolderListModel
  • QML OpenGl layout issue with a retina screen

    Unsolved
    1
    0 評價
    1 貼文
    130 瀏覽
    尚無回覆
  • I want to use the asynchronous property of a Shape object

    Unsolved
    1
    0 評價
    1 貼文
    166 瀏覽
    尚無回覆
  • I want to clip an image with Shape

    Unsolved
    1
    0 評價
    1 貼文
    243 瀏覽
    尚無回覆
  • QVector<int> not working as model?

    Solved
    3
    0 評價
    3 貼文
    870 瀏覽
    T
    Thank you, that solved my problem!
  • My first use of Qt 6 based on QML (qt6) book

    Unsolved
    7
    0 評價
    7 貼文
    697 瀏覽
    ndiasN
    Hi @qcoderpro , Here you can find a video tutorial, a little outdated but quite complete, on how to setup and use QML for Android: https://www.youtube.com/watch?v=w2RRgRGHsDA This one is also very explicit, but it is in Spanish language and does not show all setup steps: https://www.youtube.com/watch?v=v6SvsTPEe4I Both allowed me to develop my first android application. Regards
  • Thread interruption from QML

    Solved
    2
    0 評價
    2 貼文
    215 瀏覽
    U
    as a workaround for now I added a slot in my thread to do that for me using C++ and called it using QML [image: 8b83f1ec-87ba-4d97-a211-904f108e4390.png] if there's a better way to do it please do tell!
  • how to filter listmodel elements by text without deleting and remaking items?

    Unsolved
    2
    0 評價
    2 貼文
    505 瀏覽
    fcarneyF
    https://doc.qt.io/archives/qt-5.9/qtquick-tutorials-dynamicview-dynamicview4-example.html I kind of wish I saw this earlier when doing some of this work. I ended up using some C++ models to do this.
  • Style into button

    Unsolved
    2
    0 評價
    2 貼文
    217 瀏覽
    MarkkyboyM
    See here; https://forum.qt.io/topic/79071/how-to-set-style-of-button-in-qml Try this; import QtQuick 2.12 import QtQuick.Window 2.12 import QtQuick.Controls 2.12 Window { width: 640 height: 480 visible: true title: qsTr("Hello World") Button { id: control text: "Button" anchors.centerIn: parent background: Rectangle { implicitWidth: 200 implicitHeight: 50 border.width: control.activeFocus ? 2 : 1 border.color: "#888" radius: 4 gradient: Gradient { GradientStop { position: 0 ; color: control.pressed ? "#ccc" : "#eee" } GradientStop { position: 1 ; color: control.pressed ? "#aaa" : "#ccc" } } } } }
  • close on click event in design studio

    Unsolved
    1
    0 評價
    1 貼文
    108 瀏覽
    尚無回覆