Skip to content
  • Backface Culling with Runtimeloader - QtQuick3D / QML

    Solved QML and Qt Quick qtquick3d qml
    3
    1 Votes
    3 Posts
    447 Views
    J
    This did it - thank you so much, I've been trying to figure this out forever.
  • ListView with Flow layout

    Unsolved QML and Qt Quick qml listview layout
    3
    0 Votes
    3 Posts
    320 Views
    A
    @SuhasKrishanamurthy, thanks for your help, but the GridView component has fixed cell's width and height. Items' height can grow up, but if it will be greater than cell's size, the collision occures. If I adjusted GridView's cell size depending on size of largest item, there were too much free space between small items. The following code lays items out with collision: GridView { id: gridView width: 600 height: 400 cellWidth: 200 cellHeight: 100 flow: GridView.FlowTopToBottom model: ListModel { ListElement { value: "Lorem ipsum dolor sit amet, consectetur adipiscing elit" } ListElement { value: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." } ListElement { value: "Lorem ipsum dolor sit amet" } ListElement { value: "Lorem ipsum dolor sit amet" } ListElement { value: "Lorem ipsum dolor sit amet" } ListElement { value: "Lorem ipsum dolor sit amet" } ListElement { value: "Lorem ipsum dolor sit amet" } ListElement { value: "Lorem ipsum dolor sit amet" } ListElement { value: "Lorem ipsum dolor sit amet" } ListElement { value: "Lorem ipsum dolor sit amet" } ListElement { value: "Lorem ipsum dolor sit amet" } ListElement { value: "Lorem ipsum dolor sit amet" } ListElement { value: "Lorem ipsum dolor sit amet" } ListElement { value: "Lorem ipsum dolor sit amet" } ListElement { value: "Lorem ipsum dolor sit amet" } ListElement { value: "Lorem ipsum dolor sit amet" } } // orientation: Qt.Horizontal // GridView doesn't have this property boundsBehavior: Flickable.StopAtBounds clip: true delegate: Item { width: gridView.cellWidth height: contentItem.implicitHeight required property string value Rectangle { id: contentItem width: parent.width color: "lightgray" implicitHeight: tex.implicitHeight + 20 Text { id: tex text: value wrapMode: Text.WordWrap anchors.margins: 10 anchors.fill: parent } } } } [image: 5511da81-8d79-4306-a3e0-805fb1a8683a.png] The desired behavior is lay items out onto the first column until it has free space and then turn into the next column (see picture in the question). Unfortunately, GridView lays item out strictly as a grid. This is partially implemented with Flow + Repeater layout: [image: 0887646e-c6a2-4106-b30c-ff9f8b07a38f.png]
  • QT Quick 3d or Qt 3d?

    Unsolved QML and Qt Quick qml qtquick3d qt3d
    1
    0 Votes
    1 Posts
    141 Views
    No one has replied
  • 0 Votes
    3 Posts
    401 Views
    R
    Thanks, but: @Rangantha-B-V said in Custom TextField existing required property not initialized, but it is: implicitWidth exists on Item and is read-only (computed internally based on content/layout hints). I disagree. The doc does not write that the property is read-only. It says that "however some items have an inherent implicit size which cannot be overridden, for example, Image and Text", which I assume is the case of the TextInput, but is not really mentioned precisely in the doc... As a counter-example to read-only, you can set an implicitWidth with a ComboBox and with a TextField. The ComboBox can have a required on implicitWidth without any problems, which is not the case of TextField, why that ? @Rangantha-B-V said in Custom TextField existing required property not initialized, but it is: bind to width or implicitWidth internally So it's read-only from the outside but editable within the object ? In this case, why could I set it from the outside by simply removing the required line ?
  • 0 Votes
    9 Posts
    679 Views
    A
    @Redman cool 😎
  • Getting C++ struct in QML as type

    Solved General and Desktop qml c++ struct
    8
    1 Votes
    8 Posts
    703 Views
    A
    @Asperamanca I tried to change the whole text to lowercase and that worked!
  • 0 Votes
    4 Posts
    496 Views
    MarkkyboyM
    It may well be something to do with the latest offering of QT, many changes have been made since 5.15. I looks like you have solved your problem, what was it?
  • 0 Votes
    3 Posts
    571 Views
    SavizS
    @costasjames479 I am aware that other styles are available for Qt Quick Controls. However, according to the documentation, the Basic Style is the most performant and platform-compatible, which is why I prefer to use it. With this in mind, how can I figure out what to place as the attribute or property name instead of ? in the following code: TextField { palette { ?: "blue" ?: "white" } } ComboBox { palette { ?: "blue" ?: "white" } } In other words, is there a detailed list in the documentation that specifies the name of each attribute, which I might have overlooked?
  • 0 Votes
    1 Posts
    792 Views
    No one has replied
  • 0 Votes
    2 Posts
    368 Views
    johngodJ
    Don't use anchors for the dot, use a fixed value, something like Image { id: dot width: someWidth height: someHeight x: someXPositionRelativeToXBodyImage y: someYPositionRelativeToYBodyImage ..... }
  • 0 Votes
    1 Posts
    305 Views
    No one has replied
  • 0 Votes
    1 Posts
    298 Views
    No one has replied
  • Multiple device application in QML

    Unsolved QML and Qt Quick qt quick qml
    7
    0 Votes
    7 Posts
    819 Views
    R
    @johngod This is a great reference. I will check the code and compare what I am doing wrrong here. Thank you so much.
  • 0 Votes
    2 Posts
    577 Views
    Q
    Same issue, I have also got this cmake warning: -- qmlplugindump failed for org.kde.quickcharts. -- Could NOT find org.kde.quickcharts-QMLModule (missing: org.kde.quickcharts-QMLModule_FOUND) The qml plugin 'QuickChartsplugin' is a dependency of 'project', but the link target it defines (KF6::QuickChartsplugin) does not exist in the current scope. The plugin will not be linked.
  • QPopup auto size to TableView

    Unsolved QML and Qt Quick qml tableview popup
    1
    0 Votes
    1 Posts
    205 Views
    No one has replied
  • QML Mouse drag laggy

    Unsolved QML and Qt Quick qml draghandler mousearea
    6
    0 Votes
    6 Posts
    771 Views
    Z
    I v solve this problem: insert this 2 line code in main.cpp before create QGuiApplication object: qputenv("QSG_RENDER_LOOP", "basic" ); QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL);
  • QMLLS not finding manual C++ registrations

    Solved QML and Qt Quick qml qmlls cpp registration class
    4
    0 Votes
    4 Posts
    592 Views
    ekkescornerE
    instead of setContextProperty() you should use QML_SINGLETON see: https://t1p.de/ekkeQML_SINGLETON
  • QML module Imports Not Found by IDE

    Solved QML and Qt Quick qml import ide warning module
    18
    0 Votes
    18 Posts
    4k Views
    L
    @SimpleY i ve got same problem as your, try to go to preferences->Qt Quick->QML/JS editing-> QML Language server and remove tick on Tun on (leave all unchecked) it worked for me.
  • 0 Votes
    10 Posts
    1k Views
    B
    @JonB It appears the problem was in my testing after updating the latest code here (Also it was always 10,000 data points, I wrongly wrote it as 1000.. I over-worked this issue. I will mak an edit. ). CPU usage has come down to 18% from 60%. I had done following things- Moved LineSeries update to backend LineSeres clear + append is replaced with replace Qt is upgraded to 6.8.0 I am not sure which one out of this helped but results look better now. Thank you so much everyone who spent their efforts to read my long question and provide amazing ideas. Appreciate it.