跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k 主題 77.7k 貼文
  • Adjust the latency of QML MediaPlayer (Qt6)

    Unsolved
    1
    0 評價
    1 貼文
    414 瀏覽
    尚無回覆
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    16 瀏覽
    尚無回覆
  • Hiding .qml files for deployment

    Unsolved
    2
    0 評價
    2 貼文
    237 瀏覽
    ndiasN
    Hi @akilic, You need to add your .qml files to the Resource Collection Files (.qrc) so this files are built into the binary. You can find more details in this example: https://doc.qt.io/archives/qt-5.9/qtquickcontrols2-chattutorial-example.html Regards
  • Trying to get the wifi availability in linux using qt

    Unsolved
    1
    0 評價
    1 貼文
    122 瀏覽
    尚無回覆
  • Qt c++ application results QNetworkReply::UnknownNetworkError error after network restart

    Solved
    6
    0 評價
    6 貼文
    2k 瀏覽
    Q
    @SGaist You saved my time. Thanks for the input and my application worked after I have recreated the QNAM object and connected the necessary signals and slots into my current context. Thanks for your support.
  • QML and QT Quick error

    Unsolved
    33
    1 評價
    33 貼文
    9k 瀏覽
    T
    @OttoRyynanen Thank you, I added QT_OPENGL=software in the Windows environment. It work
  • Is there a way to call the tableview again?

    Unsolved
    2
    0 評價
    2 貼文
    178 瀏覽
    jsulmJ
    @Kim-chang-hee Please don't double post! This is same question as in: https://forum.qt.io/topic/136727/how-to-call-tableview-again
  • module "QtQuick.Extras" is not installed

    Solved
    3
    0 評價
    3 貼文
    2k 瀏覽
    A
    Ah, well thanks anyway.
  • Qml list disappeare and not visible sometimes

    Unsolved
    2
    0 評價
    2 貼文
    177 瀏覽
    MarkkyboyM
    You're not setting a ListView to display the ListModel, see here for answer; https://forum.qt.io/topic/134573/simple-listmodel-example
  • Material.accent color by name, only accepts enumerations?

    Unsolved
    5
    0 評價
    5 貼文
    521 瀏覽
    M
    @lemons Sorry for a late reply, I will try this tomorrow, thank you!
  • Different Compiler & Build system kit, Different Result.

    Unsolved
    1
    0 評價
    1 貼文
    121 瀏覽
    尚無回覆
  • How to call tableview again?

    Unsolved
    3
    0 評價
    3 貼文
    284 瀏覽
    K
    @jsulm When I uploaded the code, it was cut off a bit, so I uploaded a capture, but I will upload it again with the code..!
  • Can I populate a TableView's rows with a C++ QVariantList?

    Unsolved
    4
    0 評價
    4 貼文
    820 瀏覽
    J
    Thanks for providing the update. I'm looking to do something similar at the moment, and am somewhat perplexed by the QAbstractItemModel approach. It seems overly complex for managing some basic data types in a QML TableView, and (from the initial research I've conducted) it seems that the 'roles' have to be pre-defined, which surely makes the use of a generic QAbstractItemModel-based class (i.e. one where the class can be instantiated for multiple QML TableViews within the one application, each with its own set of columns, etc.) either very complicated or not possible?
  • QML TableView delegate row height with multi-line text

    Unsolved
    3
    0 評價
    3 貼文
    967 瀏覽
    J
    I've made a bit of progress. I found this post on SO, which showed a way of producing a dynamic height for each row within the rowDelegate element: rowDelegate: Rectangle { height: (myModel.get(styleData.row).lineCount || 1) * 20 } I've modified this for my particular use case, and now have the following: rowDelegate: Rectangle { Component.onCompleted: { height = myTableModel.get(styleData.row).data.split("\n").length * 20 } } Note that in the above snippet, my 'myTableModel' refers to a ListModel (in my updated code), not the TableModel shown in my original post. The above code works, but it doesn't provide a complete solution. If my TableView were to be expanded to incorporate additional columns, a Math.max() calculation would have to be performed to process the .split("\n").length value of every single column, which doesn't seem like an efficient solution. The more pressing concern, is that this approach only caters to multi-line text strings that have explicit '\n' newline characters. The solution should also be able to account for text strings that have wrapped. Any ideas?
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    7 瀏覽
    尚無回覆
  • I have Qt Creator that has no Qt Quick Qml with C++ only with python

    Solved
    8
    0 評價
    8 貼文
    850 瀏覽
    M
    btw, I have another qt quick qml catergory here but I think it's different from Qt Quick Application C++ the normal which I find in tutorials I also have inquiry is Qt Qucik is relating to QML project only right? or it has another unique thing for speicifc projects? [image: 495098e5-dc64-4457-ae8d-45d9b70bc2ae.png]
  • Is there a way to create a tableview inside a button click event?

    Unsolved
    2
    0 評價
    2 貼文
    164 瀏覽
    N
    Im not sure what are you trying to achieve but you cant create objects like this with java script... (since button handlers are js functions and are not evaluated as qml code) , consider using a loader and a check-able button so that when the button is checked you set the loader visible or not visible (though you dont need a loader for that) or change the source component somthing like this: Item{ Button{id: someButton } Loader{ visible: someButton.checked sourceComponent:TableVIew{...} } } Also you might want to read this https://doc.qt.io/qt-5/qtqml-javascript-dynamicobjectcreation.html
  • How to set Qt::WA_AlwaysShowToolTips for QML Tool Window

    Unsolved
    2
    0 評價
    2 貼文
    279 瀏覽
    尚無回覆
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    8 瀏覽
    尚無回覆
  • Stopping camera blocks ui thread

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