Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.3k Topics 78.3k Posts
Qt 6.11 is out! See what's new in the release blog
  • OpenUSD Hydra + Qt Quick/QRhi/Vulkan Integration, Architectural Guidance

    Unsolved
    2
    0 Votes
    2 Posts
    59 Views
    Nils SjobergN
    Decouple Hydra and Qt for independent rendering, share the VkDevice in a synchronized manner, and connect them using VkImage and GPU synchronization (timeline semaphores) instead of blocking the GUI on every frame.
  • no signal of the target matches the name

    Solved
    5
    1 Votes
    5 Posts
    243 Views
    KH-219DesignK
    This is a nice mini writeup that will surely help people who encounter (and then google) the output: "This is probably intended to be a signal handler but no signal of the target matches the name"
  • Order of multiple C++ QML_ELEMENT instantiation

    Unsolved
    1
    1 Votes
    1 Posts
    60 Views
    No one has replied
  • What is best way to implement controls that render very fast?

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    S
    @Simmania said in What is best way to implement controls that render very fast?: So I now choosed for QQuickItem + QSGGeometryNode. Not to complicated and hopefully fast enough. Please post your results from this try here once you have it working. Just in case someone stumbles across this thread in the future.
  • Auto-regiersting QML types in MSBuild

    Unsolved
    2
    0 Votes
    2 Posts
    186 Views
    Nils SjobergN
    Write a .pro file, import it into Qt VS Tools - QtQmlTypeRegistrar is valid in MSBuild - this is the only supported path,
  • Why is drawcall batching (using my own QSGNodes) slower?

    Unsolved
    2
    0 Votes
    2 Posts
    151 Views
    Nils SjobergN
    The problem is not the number of draw calls, but that you are generating circles with 1024 segments instead of about 32-64,
  • How do those crazy Q Macros work?

    Solved
    4
    0 Votes
    4 Posts
    213 Views
    JKSHJ
    @DSpUz said in How do those crazy Q Macros work?: there is no visible Object instance. There IS an object instance! The singleton is an instance. I do not quite understand how the so called "signal" can change value of a property A NOTIFY signal tells the QML engine to discard the old (cached) property value and read it again. When your Globals singleton (instance) emits the numberChanged signal, the QML engine re-reads Globals.number and updates the text.
  • Image vs VectorImage for SVG. What to use?

    Unsolved
    5
    0 Votes
    5 Posts
    408 Views
    S
    I agree that for fixed sizes PNG is the better format. However, for mobile devices in a lot of cases the size is not fixed. Maybe I have assumed too much 😉. Even on desktop we tend to use SVG for icons because of display scaling (though as far as I know if you have a dedicated designer he should design PNGs for different resolutions instead).
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    17 Views
    No one has replied
  • AVD Black screen issue

    Solved
    4
    0 Votes
    4 Posts
    321 Views
    D
    I want to add, that changing hw.gpu.mode=hardware seems to be not the same as hw.gpu.mode=Hardware - GLES 2.0, changing it to hardware seemed to solve the issue for some time, but today as it resurfaced i first tried Software - GLES 2.0 and it (at least for now) solved the issue, so i switched to Hardware - GLES 2.0 for seemingly better responsiveness(might be placebo though).
  • Submodule QML module not found (MySubmoduleName)

    Solved
    6
    0 Votes
    6 Posts
    398 Views
    D
    @JKSH the QT_QML_OUTPUT_DIRECTORY is setting is not covered in the video tutorial itself, it is only in the github repository, one of the recent rating comments does hint at this: [image: db4c45f8-b684-4068-a7bf-c1ff17440729.png] I think if one includes it in the CMake file then it is enough (though i didn't test it), no need to use QML Language Server. Also your identifier tip solved the other warning, thanks.
  • import ModelViewDelegate fails

    Solved
    9
    0 Votes
    9 Posts
    490 Views
    A
    @DSpUz my laptop was bad so i couldnt reply
  • Flow not working AVD

    Solved
    3
    0 Votes
    3 Posts
    240 Views
    D
    thanks, Awesome Programmer, i somehow missed that line.
  • Android Emulator and DragHandler

    Unsolved
    1
    0 Votes
    1 Posts
    118 Views
    No one has replied
  • QtGraphs: QML GraphsView margin between grid and X axis

    Unsolved
    2
    0 Votes
    2 Posts
    308 Views
    Nils SjobergN
    There is no built-in property for spacing between a label and a grid in Qt Charts - the only practical solution is to add a space/character at the beginning of each category text to visually push the label away from the grid.
  • How to call `QAbstractItemModel::setData` from QML view?

    Solved
    5
    1 Votes
    5 Posts
    416 Views
    K
    For multiple reasons, calling setData in this case is the only viable option. This is what I have in my head: ListView { model: /* ... */ delegate: SomeWidget { onEdit: { model.setData(model.index(row, column), someDataToMutate) } } } Column is always 0 in this case, but how is one supposed to get the current row in a QML model-view?
  • 0 Votes
    6 Posts
    533 Views
    G
    Its working now. Thanks! @Nils-Sjoberg
  • QML Local Directory Imports will be undefined after an uncertain amount of time

    Unsolved
    2
    0 Votes
    2 Posts
    368 Views
    SGaistS
    Hi and welcome to devnet, Can you test this with a more recent version of Qt ?
  • Getting undefined values when using QAbtractListModel

    Unsolved
    2
    0 Votes
    2 Posts
    273 Views
    SGaistS
    Hi and welcome to devnet, Please show a minimal code sample that reproduces your situation. Also: Which version of Qt ? On which OS ?
  • Custom TextArea with visible text outside. How?

    Unsolved
    2
    0 Votes
    2 Posts
    689 Views
    DiackneD
    Try this. Maybe that's what you want. Rectangle { width: 300 height: 100 anchors.centerIn: parent color: "#f0f0f0" Flickable { anchors.fill: parent contentWidth: width contentHeight: editor.contentHeight ScrollBar.vertical: ScrollBar {} TextEdit { id: editor width: parent.width wrapMode: TextEdit.Wrap text: "Linha 1\nLinha 2\nLinha 3\nLinha 4\nLinha 5\nLinha 6\nLinha 7\nLinha 8\nLinha 9\nLinha 10" } } }