Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.8k Posts
  • Transparent region to show external application

    Unsolved
    1
    0 Votes
    1 Posts
    151 Views
    No one has replied
  • Display and refresh a dynamic list on QML

    Unsolved
    7
    0 Votes
    7 Posts
    4k Views
    C
    @ibia Hi. I did the way u said, but nothing change. so sad .ohoh
  • Blank Error Message

    Unsolved
    1
    1 Votes
    1 Posts
    314 Views
    No one has replied
  • QML ListView items are inaccessible because auto-scrolling goes too far

    Unsolved
    3
    0 Votes
    3 Posts
    448 Views
    StokestackS
    @sierdzio Thanks for the reply. ListView was auto-scrolling an entire page (actually, more than an entire page) at a time with a single click of the mousewheel. Cranking flickDeceleration up to 10000 suppressed this behavior sufficiently. Thanks. It's unfortunate that the implementation interprets the mousewheel as "flicking," because using a very-high deceleration rate to make a ListView usable with a mouse hobbles it for touch.
  • How to access properties of image loaded by canvas.loadImage?

    Unsolved
    1
    0 Votes
    1 Posts
    124 Views
    No one has replied
  • Need to fetch the Wi-Fi availability list using Qt

    Unsolved
    2
    0 Votes
    2 Posts
    178 Views
    SGaistS
    Hi and welcome to devnet, That's outside of the scope of Qt. If memory serves well connman is used on Linux. And to confirm that, Sailfish OS has a Qt library to interact with it.
  • Adjust the latency of QML MediaPlayer (Qt6)

    Unsolved
    1
    0 Votes
    1 Posts
    416 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    16 Views
    No one has replied
  • Hiding .qml files for deployment

    Unsolved
    2
    0 Votes
    2 Posts
    240 Views
    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 Votes
    1 Posts
    123 Views
    No one has replied
  • 0 Votes
    6 Posts
    2k Views
    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 Votes
    33 Posts
    9k Views
    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 Votes
    2 Posts
    186 Views
    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 Votes
    3 Posts
    3k Views
    A
    Ah, well thanks anyway.
  • Qml list disappeare and not visible sometimes

    Unsolved
    2
    0 Votes
    2 Posts
    179 Views
    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 Votes
    5 Posts
    528 Views
    M
    @lemons Sorry for a late reply, I will try this tomorrow, thank you!
  • Different Compiler & Build system kit, Different Result.

    Unsolved
    1
    0 Votes
    1 Posts
    122 Views
    No one has replied
  • How to call tableview again?

    Unsolved
    3
    0 Votes
    3 Posts
    292 Views
    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 Votes
    4 Posts
    824 Views
    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 Votes
    3 Posts
    981 Views
    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?