Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
19.9k Topics 76.9k Posts
QtWS25 Last Chance
  • 0 Votes
    3 Posts
    54 Views
    I

    Yes, I’ve come across similar recommendations in other forums, and I agree — KDE projects are some of the best examples when it comes to high-quality QML code.

    That said, I was wondering if there are any other open-source projects (outside of KDE) that you would recommend studying — ideally ones that also demonstrate solid architecture, clean QML practices, and possibly QML-C++ integration.

  • Installing a reusable QML module

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

    Unsolved
    2
    0 Votes
    2 Posts
    33 Views
    SGaistS

    Hi and welcome to devnet,

    You are trying to access an invalid element in a std::vector.

    Use the debugger to see exactly where it is happening.

  • Listview Populate Transition Interrupted

    Solved
    2
    0 Votes
    2 Posts
    119 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
    62 Views
    Ronel_qtmasterR

    @IamSumit what if you add to your code visibility: Window.FullScreen

  • 1 Votes
    10 Posts
    184 Views
    Aleksey_KA

    Unfortunate MultiEffect is buggy comparing to ColorOverlay - it does not color my icon in some cases, so forced to rollback to Qt5Compat.GraphicalEffects.

  • QtGraphs Bug

    Unsolved
    5
    0 Votes
    5 Posts
    113 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.

    Снимок экрана 2025-04-11 094816.png

  • 0 Votes
    3 Posts
    65 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
    44 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    38 Views
  • 0 Votes
    1 Posts
    34 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
    70 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
    381 Views
    Z

    @JonB No, it is dynamic linked.

  • Protoyping custom qtquickcontrols2 styles with qmlscene

    Unsolved
    6
    0 Votes
    6 Posts
    460 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
    114 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.

  • Why VXYModelMapper doesn't work as expected ?

    Unsolved
    1
    0 Votes
    1 Posts
    53 Views
    No one has replied
  • 0 Votes
    6 Posts
    278 Views
    jeremy_kJ

    @Mizmas said in In QML, how to stop children from inheriting parent properties like opacity?:

    @jeremy_k Thanks it worked, I wish the Item type had a property to wrap around it's children though, I've tried using childrenRect.width with childrenRect.height for the parent Item's size, but it was a bit messy, at least in the Qt Design Studio.

    I'm not sure that I understand the issue. Are you saying that you want a single property to make the parent the same size as the children, rather than 2? I don't use design studio, but I don't see the a mess running the same code via creator.

    Another option is to make the background the child of the piece, with a negative z.

  • 0 Votes
    1 Posts
    57 Views
    No one has replied
  • Do QML files support UNIX shebangs?

    Solved
    2
    0 Votes
    2 Posts
    115 Views
    JonBJ

    @RokeJulianLockhart
    Have you read through https://www.ics.com/blog/whole-shebang-running-qml-files-directly ?

    Apparently it works? But I have to say, since QML files use // not # for comment line, I don't see why or how or where it is documented....