Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • qml TableView top left corner

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

    Unsolved
    3
    0 Votes
    3 Posts
    317 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
    157 Views
    No one has replied
  • Listview Populate Transition Interrupted

    Solved
    2
    0 Votes
    2 Posts
    366 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
    379 Views
    Ronel_qtmasterR
    @IamSumit what if you add to your code visibility: Window.FullScreen
  • QtGraphs Bug

    Unsolved qtgraphs pyside6
    5
    0 Votes
    5 Posts
    513 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
    297 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
    158 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
    132 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
    273 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
    664 Views
    Z
    @JonB No, it is dynamic linked.
  • Protoyping custom qtquickcontrols2 styles with qmlscene

    Unsolved
    6
    0 Votes
    6 Posts
    813 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
    287 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.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    56 Views
    No one has replied
  • In QML, how to stop children from inheriting parent properties like opacity?

    Solved
    6
    0 Votes
    6 Posts
    601 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.
  • Do QML files support UNIX shebangs?

    Solved
    2
    0 Votes
    2 Posts
    266 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....
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    91 Views
    No one has replied
  • 0 Votes
    1 Posts
    161 Views
    No one has replied