Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.1k Posts
  • GStreamer Qt6GLVideoItem cannot be imported by QML with PySide6

    Unsolved
    3
    1 Votes
    3 Posts
    158 Views
    JoeCFDJ
    https://forum.qt.io/topic/161751/qt6-gstreamer-cmake/2?_=1744802661208
  • Make Image Round

    Unsolved
    7
    0 Votes
    7 Posts
    166 Views
    M
    @J.Hilk yes I am sure, but apparently android is not rendering the images when I apply it, however this workaround that I mention worked for me finally.
  • Qt6 color SVG using MultiEffect

    Solved
    13
    0 Votes
    13 Posts
    3k Views
    A
    @srce said in Qt6 color SVG using MultiEffect: Rather than converting pngs from black to white, setting brightness to 1 (in addition to colorize) should have a similar effect. Yep, this works for me, thanks, however Qt 5 solution more flexible: with ColorOverlay I can set color: "transparent" to fully keep original icon where necessary, here icon becomes white for some reason, even if MultiEffect item or layer is not visible/enabled. So still forced to stay on ColorOverlay.
  • QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed

    Solved
    11
    1 Votes
    11 Posts
    464 Views
    A
    @Aleksey_K said in QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed: Unfortunate MultiEffect is buggy comparing to ColorOverlay - it does not color my icon in some cases, so forced to rollback to Qt5Compat.GraphicalEffects. Found solution for the full replacement: https://forum.qt.io/post/807844 Need to set brightness: 1.0, however now "transparent" color does not work if I need to keep original color unchanged, Probably need to add more complex logic to hide MultiEffect and show original Image. So still on ColorOverlay.
  • Recommendations for Well-Written Open-Source QML Projects to Study

    Unsolved
    8
    0 Votes
    8 Posts
    277 Views
    GrecKoG
    There's also Slate - Pixel Art Editor Scrite - Screenwriting app
  • qml TableView top left corner

    Unsolved
    1
    0 Votes
    1 Posts
    53 Views
    No one has replied
  • Getting error vector subscript out of Range

    Unsolved
    3
    0 Votes
    3 Posts
    97 Views
    S
    @SGaist said in Getting error vector subscript out of Range: Use the debugger to see exactly where it is happening. To do that, click on "Retry".
  • Installing a reusable QML module

    Unsolved
    1
    0 Votes
    1 Posts
    46 Views
    No one has replied
  • Listview Populate Transition Interrupted

    Solved
    2
    0 Votes
    2 Posts
    161 Views
    A
    Hello again! After some digging, I’ve found an "elegant" solution. First, setting the NumberAnimation with a duration of 500 (population animation) was interfering with the hover animation duration (Delegate), which is 300. That was causing some weird behavior. The second part is that I added the property change in the "" state, which fixed the issue and now the element returns to its original position even if the animation gets interrupted. states: [ State { name: "zoomed" PropertyChanges { target: test_delegate scale: zoomedScale rotation: zoomedRotation } }, State { name: "" PropertyChanges { target: test_delegate scale: normalScale rotation: normalRotation } } ]
  • 0 Votes
    4 Posts
    128 Views
    Ronel_qtmasterR
    @IamSumit what if you add to your code visibility: Window.FullScreen
  • QtGraphs Bug

    Unsolved qtgraphs pyside6
    5
    0 Votes
    5 Posts
    198 Views
    S
    @jsulm @jsulm said in QtGraphs Bug: Look at these numbers. I doubt this is what you added. Yes, I agree the numbers are output strangely. @jsulm said in QtGraphs Bug: run the app in a terminal, then you should see the Python exception. Perhaps I don't have enough knowledge, I would be glad if you could explain how a regular terminal differs from a terminal in VS Code. I don't understand what new things I'll be able to see. I also see python exceptions in the VS Code terminal, but they were not noticed in this code. In any case, how can you explain that the same code works without problems when replacing QSplineSeries with QLineSeries, I attach a screenshot of an example of the work. [image: 33a49b14-9ee0-4b70-94c0-553c878b7d13.png]
  • Assign data model elements to different pages of a SwipeView

    Solved
    3
    0 Votes
    3 Posts
    102 Views
    R
    Thanks for your reply and the hint with the proxy model. A good working solution was now implemented using the following design: One AbstractListModel holding all the data A SortFilterProxyModel to filter the data based on the page number is instanciated for each page, using the Repeater + Loader inside of the SwipeModel The source component of the Loader holds a ListView that is using the ProxyModel as a model
  • ApplicationWindow size policy?

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

    Unsolved
    2
    0 Votes
    2 Posts
    38 Views
  • The Qt control fails to display the candidate word area above the virtual keyboard.

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

    Unsolved
    1
    0 Votes
    1 Posts
    49 Views
    No one has replied
  • qml quick3d

    Unsolved
    2
    0 Votes
    2 Posts
    115 Views
    J
    Have you prepared your models through balsam? https://doc-snapshots.qt.io/qt6-dev/qtquick3d-tool-balsam.html
  • qtquick2plugin not found

    Unsolved
    4
    0 Votes
    4 Posts
    429 Views
    Z
    @JonB No, it is dynamic linked.
  • Protoyping custom qtquickcontrols2 styles with qmlscene

    Unsolved
    6
    0 Votes
    6 Posts
    513 Views
    Z
    As far as i know, the controls defined in the style need to inherit from Template classes (e.g. T.Dialog {...}).
  • Can't build Qt6 from sources: invalid synax of QML modules

    Unsolved
    2
    1 Votes
    2 Posts
    136 Views
    L
    I was also seeing the same strange error and struggling to work out where it came from: qmldir file not found at "some/path" turned out it was a call to qt_import_qml_plugins. Not sure what this means in the context of this conan build, though.