跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k 主題 77.4k 貼文
  • Qt Quick Websocket and Listview

    Solved
    2
    0 評價
    2 貼文
    214 瀏覽
    ODБOïO
    hi @NullByte said in Qt Quick Websocket and Listview: Can we update the Listview instantly by QML? Yes, add whatever you want to you ListModel using append method
  • Multiple layers

    Unsolved
    2
    0 評價
    2 貼文
    554 瀏覽
    sierdzioS
    Each graphical effect is a separate component, you can combine as many of them as you want. If you need to blend them, use Blend component.
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    7 瀏覽
    尚無回覆
  • Open folder on computer QML

    Unsolved
    6
    0 評價
    6 貼文
    832 瀏覽
    ODБOïO
    hi @Designer23 said in Open folder on computer QML: filedia.setFolder("D:/Users/hp/Doc") I dont see setFolder() mthod here https://doc.qt.io/qt-5/qml-qtquick-dialogs-filedialog.html#methods maybe try filedia.folder = "D:/Users/hp/Doc"
  • QML filters in the table header

    Unsolved qml tableview hdr filter textfield
    1
    0 評價
    1 貼文
    598 瀏覽
    尚無回覆
  • QtQuick Controls 2 Style: Material.background and Universal.background NOT working

    Unsolved
    2
    0 評價
    2 貼文
    381 瀏覽
    D
    I'm sending also printscreen: [image: 5024d9ca-a876-49b6-9d07-5cae564b22dc.png]
  • Struggles with Page/ScrollView/ColumnView centering and scrolling

    Solved qml scrollview columnlayout positioning
    2
    0 評價
    2 貼文
    1k 瀏覽
    PendletonicP
    Hello! I think what is missing is a specification of the contentWidth and contentHeight of the ScrollView. The reason this breaks in the main case is because ColumnLayout has no default width/height. In spite of your specification of an implicitHeight and implicitWidth the ScrollView still must have the content sizes specified manually. So adding: contentWidth: parent.width contentHeight: the_column.height to the ScrollView resolves the issues.
  • QCompass in QT Quick mobile App

    Unsolved
    8
    0 評價
    8 貼文
    873 瀏覽
    P
    Deploying this code on Windows doesn't change the situation, just checked this out.
  • Missing Translations for Standard Buttons in QtQucikControls2

    Solved
    4
    0 評價
    4 貼文
    514 瀏覽
    S
    I found this link useful.
  • left-hand side of assignment operator is not an lvalue

    Solved
    2
    0 評價
    2 貼文
    2k 瀏覽
    ODБOïO
    hi You use "play" as property name and button id
  • Exceptions using InputPanel

    Unsolved
    4
    0 評價
    4 貼文
    645 瀏覽
    fcarneyF
    What happens if you use QApplication instead of QGuiApplication in your main.cpp? I have run into quite a few QML objects that will crash the program if using QGuiApplication.
  • 0 評價
    3 貼文
    293 瀏覽
    N
    @GrecKo , Thank you for the suggestion. I Have updated the same.
  • How to create a Tableview in which we can update the row and column dynamically through cpp?

    Unsolved
    1
    0 評價
    1 貼文
    107 瀏覽
    尚無回覆
  • Translations - No way to change language in runtime except with a blank string?

    Solved
    4
    0 評價
    4 貼文
    531 瀏覽
    sierdzioS
    @jeanmilost said in Translations - No way to change language in runtime except with a blank string?: This refreshes all bindings. though (not only texts), which might be suboptimal (using empty string hack will have better performance). But best test this in your app and decide for yourself. On another side, using the string hack may be more complicated to maintain in a huge project (e.g easy to forget empty strings on several translations), in addition to generate several side effects in my project (e.g I see qsTr("MyCaption") + WTranslation.emptyString in every component on my designer instead of just MyCaption). So if the performance isn't too bad, I will clearly favorise this option over the string hack. Of course, these are good arguments. I don't know your project, of course, but in a general case users would not be unhappy even if language switch was slow (1-3 seconds), it should be enough to add a loading popup or something. How it will be in practice, depends of course. Depending on how screens are loaded and general app architecture, there can be thousands of active bindings, or just a few dozen. In an optimistic case reevaluation of them all will take mere miliseconds.
  • 0 評價
    2 貼文
    1k 瀏覽
    A
    For someone facing a similar issue, I did not find a direct solution, According to the table https://doc.qt.io/qt-5/qtqml-cppintegration-data.html#sequence-type-to-javascript-array QList<CustomClass> is not yet supported in QML. Due to this reason I had to convert the QList<QList<CustomClass>> to QVariantMap<string,QVariantList<QVariantList<QVariantMap>>> And while using the values in qml use the bracket notation instead of the dot notation.
  • Setting/Disabling shortcuts

    Unsolved
    4
    0 評價
    4 貼文
    965 瀏覽
    jsulmJ
    @RobM You can subclass widgets you want to use and reimplement https://doc.qt.io/qt-5/qwidget.html#keyPressEvent Keep in mind that to overwrite Tab and Shift+Tab you have to overwrite https://doc.qt.io/qt-5/qwidget.html#event See https://doc.qt.io/qt-5/qwidget.html#events
  • Qt Widgets in Qt Quick application

    Solved
    5
    0 評價
    5 貼文
    380 瀏覽
    B
    @SGaist Thank you a lot!
  • ListModel Append Data Application is Crash

    Solved
    10
    0 評價
    10 貼文
    2k 瀏覽
    ?
    It's work var tmpData = JSON.parse(xhr.responseText.replace(/null/g, '""')) if(tmpData[z].games[d].videoId === null || tmpData[z].games[d].videoId === undefined || tmpData[z].games[d].videoId === "") { tmpData[z].games[d].videoId = 0 }
  • Qt6 and Custom QQuickItem - how to use updatePaintNode

    Solved
    4
    0 評價
    4 貼文
    426 瀏覽
    SGaistS
    Great then please mark the thread as solved using the "Topic Tools" button or the three doted menu beside the answer you deem correct so that other forum users may know a solution has been found :-)
  • QML Custom Shape Clip

    Unsolved
    4
    0 評價
    4 貼文
    2k 瀏覽
    DanimaD
    @Danima basically according to tree dump the problem is that the CircleClip child is not descendant of ClipNode. QQuickItem for each item create one TransformNode to map coordinate system. All item's children are descendant of TransformNode. I want a way to some thing like replace or embed ClipNode with TransformNode .