Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.7k Posts
  • 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
    415 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
    182 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
    2k 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
    525 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
    288 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
    823 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
    975 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?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • I have Qt Creator that has no Qt Quick Qml with C++ only with python

    Solved
    8
    0 Votes
    8 Posts
    853 Views
    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 Votes
    2 Posts
    168 Views
    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 Votes
    2 Posts
    282 Views
    No one has replied