Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.8k Posts
  • White Window On RDP (MS Remote Desktop)

    Solved
    2
    0 Votes
    2 Posts
    290 Views
    V
    to solve use qputenv("QSG_RHI_PREFER_SOFTWARE_RENDERER", "1");
  • Why is this a binding loop?

    Solved
    14
    0 Votes
    14 Posts
    3k Views
    mzimmersM
    Oh...I hate it when I do that (heh). But now my statement on efficiency is even more true... EDIT: For those who really wish to exact that last bit of optimization, you could always do something like this: void ChangeConsumables::SetPosterModalChecklist(QStringList qsl) { do { if (m_posterModalChecklist == qsl) { continue; } if (any other reasons to exclude further processing) { continue; } m_posterModalChecklist = qsl; emit EventPosterModalChecklistChangedForQML(m_posterModalChecklist); } while (false); } This technique is also very handy for avoiding multiple if statements (with their annoying attendant indentation).
  • How to properly delete Entity loaded by EntityLoader?

    Unsolved
    2
    0 Votes
    2 Posts
    431 Views
    kshegunovK
    @VictorT said in How to properly delete Entity loaded by EntityLoader?: Faced the following problem. I load dynamically an Entity from external QML file using EntityLoader but sometimes it crashes with following error Please supply a minimal code snippet. setting parent to null before loading new entity The parent of what? explicitly calling 'destroy()': causes error 'Invalid attempt to destroy() an indestructible object' Where does this come from? Is there any correct way to remove Entity without crashing the backend? Simply deleting the object with deleteLater, however I have this feeling that's not where the problem is. The enitity loader is where the ownership is typically, so just switching the source should be enough.
  • Parsing local XML file to ListModel via XmlListModel

    Unsolved
    1
    0 Votes
    1 Posts
    245 Views
    No one has replied
  • Having a "pass-through" MouseArea on a WebEngineView

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

    Unsolved
    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • How to update component(text) in itemDelegate at the run time?

    Unsolved
    5
    0 Votes
    5 Posts
    454 Views
    sierdzioS
    @Rajesh_Mandava said in How to update component(text) in itemDelegate at the run time?: would like to disable the title1 button in itemDelegate. That's a modification of the model. The delegate can't have any saved state - it only displays what the model tells it to. So even turning something on/off is a boolean property of the model - at least should be.
  • Qml circular bar gauge

    Unsolved
    4
    0 Votes
    4 Posts
    618 Views
    ndiasN
    Hi @timll, Maybe you're looking for ArcItem component whit FlatCap style: https://doc.qt.io/qtdesignstudio/qml-qtquick-studio-components-arc.html
  • C++ listmodel with section.property

    7
    0 Votes
    7 Posts
    5k Views
    F
    @ggeorge82 Thank you, this fixed my issue
  • 0 Votes
    1 Posts
    159 Views
    No one has replied
  • Qt Quick 3D Pick and QML Draw Order

    Unsolved
    1
    0 Votes
    1 Posts
    270 Views
    No one has replied
  • QML Application slowly increases CPU usage over time to 100% and becomes unresponsive

    Unsolved
    12
    0 Votes
    12 Posts
    2k Views
    E
    That flame graph is just from the first 4 minutes of operation not the entire 24 hours sorry should've said that before. dmesg doesn't turn up anything that would make me think there is an issue and cron doesn't exist on the machine it's the stock boot2qt image
  • How to send key press to other application?

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    fcarneyF
    Lookup pywinauto. This is a windows python automation library. You can dig into the code to see what it has to do to send events to apps. Then look for something similar in linux and mac. Each platform will be different and require a different api. For instance on Linux you will have to support X11 and Wayland potentially. So that could double the work. Python is often used to automate things so you have a better bet of finding something that already works and and can show you how the api on that platform works.
  • 0 Votes
    1 Posts
    167 Views
    No one has replied
  • Deploy QML app to devices with languages files

    Solved
    17
    0 Votes
    17 Posts
    2k Views
    Romain CR
    It's been a while now, but I will add things on this topic. All proposed solutions made me sceptic as .tr are the sources file (as .cpp) and .qm are binary (as .o). So you're supposed to save the sources on a git, and not theirs binaries (dynamically generated). Based on this assumption, version 5 of Qt introduce : CONFIG += lrelease embed_translations All generated translation binary are then loaded under the prefix "i18n". Best regards
  • Resolving a QML settings id problem

    Unsolved
    1
    0 Votes
    1 Posts
    164 Views
    No one has replied
  • Scrollable QML Charts

    Unsolved qtcharts scrollbar
    2
    0 Votes
    2 Posts
    2k Views
    K
    Worth linking this topic to the answer documented on StackOverflow: https://stackoverflow.com/questions/46886443/scrollable-qml-charts
  • QML Tableview resize column width by dragging the column header border

    Solved
    5
    0 Votes
    5 Posts
    4k Views
    fcarneyF
    Sorry I didn't mention it. But you can pick and choose from different libraries by using the "as" clause on import. For instance if you want Quick.Controls 1 and 2 in same file you can do this: import QtQuick.Controls 2.15 import QtQuick.Controls 1.2 as QC1 ... QC1.TableView{ }
  • Translate model c++

    Unsolved
    6
    0 Votes
    6 Posts
    828 Views
    Pablo J. RoginaP
    @Fian said in Translate model c++: I decided to use files It looks like your issue is solved. If so, please don't forget to mark your post as solved!
  • Video not visible when using QtQuick3D

    Unsolved
    2
    0 Votes
    2 Posts
    234 Views
    L
    Here is the missing qml part: import QtQuick 2.15 import QtQuick3D 1.15 import QtQuick3D.Helpers 1.15 import QtMultimedia 5.15 Item { id: root_component anchors.fill: parent Video { anchors.fill: parent source: "assets/01_Animation_PTB.mp4" Component.onCompleted: { play() } } Item { // anchors.fill: parent width: 300 height: 200 View3D { id: view anchors.fill: parent environment: SceneEnvironment { clearColor: "skyblue" backgroundMode: SceneEnvironment.Color } PerspectiveCamera { position: Qt.vector3d(0, 200, 300) eulerRotation.x: -30 } DirectionalLight { eulerRotation.x: -30 eulerRotation.y: -70 } Model { position: Qt.vector3d(0, 150, 0) source: "#Sphere" materials: [ DefaultMaterial { diffuseMap: Texture { sourceItem: tester } } ] SequentialAnimation on y { loops: Animation.Infinite NumberAnimation { duration: 3000 to: -150 from: 150 easing.type:Easing.InQuad } NumberAnimation { duration: 3000 to: 150 from: -150 easing.type:Easing.OutQuad } } } } } }