Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • How do the "QML" and "QMLScene" tools differ?

    Solved
    2
    0 Votes
    2 Posts
    264 Views
    RokeJulianLockhartR
    @RokeJulianLockhart, interest.qt-project.narkive.com/p4tyYKC9 states: The QML tool is a bit more flexible, makes fewer assumptions (e.g. it doesn’t use a QApplication by default, so you don’t end up loading the widgets module into memory if you don’t need it) and is meant as the long-term replacement for qmlscene. QML can be used for non-graphical purposes if your root object is a plain QObject, not an Item or Window; that’s only practical with the qml tool, not qmlscene. It is more directly analogous to other language interpreters like python and perl (which also do not load graphical libraries unless you import the relevant modules in your script), and you can even use the shebang mechanism, so that qml files can be marked executable and run from the command line. You can configure your window system to use it as the default application with which to run any file with the qml extension (e.g. when double-clicking a qml file in your file manager/finder), if you like. (QTBUG-33659 is a request to set up that association when you install the SDK, but that never got done AFAIK. It requires someone with Qt Installer expertise, I think.) So you could nearly forget about qmlscene, except that it has a few handy command-line options that qml still doesn’t.
  • QQuickWebEngineProfile warning advising to use WebEngineProfilePrototype

    Unsolved
    1
    0 Votes
    1 Posts
    133 Views
    No one has replied
  • 0 Votes
    3 Posts
    462 Views
    R
    Thanks, but: @Rangantha-B-V said in Custom TextField existing required property not initialized, but it is: implicitWidth exists on Item and is read-only (computed internally based on content/layout hints). I disagree. The doc does not write that the property is read-only. It says that "however some items have an inherent implicit size which cannot be overridden, for example, Image and Text", which I assume is the case of the TextInput, but is not really mentioned precisely in the doc... As a counter-example to read-only, you can set an implicitWidth with a ComboBox and with a TextField. The ComboBox can have a required on implicitWidth without any problems, which is not the case of TextField, why that ? @Rangantha-B-V said in Custom TextField existing required property not initialized, but it is: bind to width or implicitWidth internally So it's read-only from the outside but editable within the object ? In this case, why could I set it from the outside by simply removing the required line ?
  • GStreamer Qt6GLVideoItem cannot be imported by QML with PySide6

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

    Unsolved
    7
    0 Votes
    7 Posts
    473 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.
  • QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed

    Solved
    11
    1 Votes
    11 Posts
    1k 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.
  • qml TableView top left corner

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

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

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

    Unsolved qtgraphs pyside6
    5
    0 Votes
    5 Posts
    522 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
    298 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
    159 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
    134 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
    278 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
    673 Views
    Z
    @JonB No, it is dynamic linked.
  • Protoyping custom qtquickcontrols2 styles with qmlscene

    Unsolved
    6
    0 Votes
    6 Posts
    815 Views
    Z
    As far as i know, the controls defined in the style need to inherit from Template classes (e.g. T.Dialog {...}).