Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • Adding more attached properties to Accessible - cannot assign to non-existent property

    Unsolved
    1
    0 Votes
    1 Posts
    218 Views
    No one has replied
  • Image of InnerShadow

    Unsolved
    1
    0 Votes
    1 Posts
    146 Views
    No one has replied
  • Connect signal to slot programmatically in QML ?

    Solved
    8
    0 Votes
    8 Posts
    877 Views
    jeremy_kJ
    https://doc.qt.io/qt-6/qtqml-syntax-signals.html#connecting-signals-to-methods-and-signals Signal objects have a connect() method to a connect a signal either to a method or another signal. When a signal is connected to a method, the method is automatically invoked whenever the signal is emitted. This mechanism enables a signal to be received by a method instead of a signal handler. Eg: Item { id: item onComponentCompleted: item.xChanged.connect(function(x) { console.log("x = " + x); }) }
  • Overriding margins?

    Solved
    5
    0 Votes
    5 Posts
    353 Views
    mzimmersM
    @JKSH yep, that did it. Thanks.
  • How to update custom model data from C++ side or QML side ?

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    M
    @JoeCFD can you write it as a code please ?
  • Can't able to load the raw file in Qml.

    Unsolved
    2
    0 Votes
    2 Posts
    178 Views
    SGaistS
    Hi and welcome to devnet, From the top of my head, you would need to implement a custom image provider that creates a QImage from your raw files.
  • Can I avoid a list-item in ListView visually move?

    Unsolved
    4
    0 Votes
    4 Posts
    319 Views
    dheerendraD
    @TomZ As @JoeCFD suggested we also hi light the item which is selected. This continue to hilight when the item is moved.
  • QtQuick.Controls with or without version number

    Solved
    3
    0 Votes
    3 Posts
    209 Views
    JM baubetJ
    Thanks for the explanations. We learn something new every day.
  • pyside6.4.1 qml module "QtCharts" is not installed

    Unsolved
    2
    0 Votes
    2 Posts
    306 Views
    No one has replied
  • QQmlPropertyMap example ?

    Solved
    2
    0 Votes
    2 Posts
    175 Views
    No one has replied
  • Error message for creating Qt Quick Application-Empty

    Unsolved
    1
    0 Votes
    1 Posts
    102 Views
    No one has replied
  • QQmlContextWrapper::getPropertyAndBase() segmentation fault

    Unsolved
    1
    0 Votes
    1 Posts
    190 Views
    No one has replied
  • How to access all files of folderlist model ?

    Unsolved
    2
    0 Votes
    2 Posts
    248 Views
    B
    @Qt-embedded-developer you could do this using Javascript in QML if you really wanted to. You would need to write a recursive function to traverse the folders. You set the current folder by setting the folder property of the model. The number of items in the current folder is given by count. The items may be queried using get(index, property). See the documentation for the available properties. However, do you want to do this? Models are usually used to drive a visual component such as a tree view that is written in a declarative style so that you don't need to explicitly loop over all files. If you want to do something like that it might make more sense to do it in your C++ back end and use the appropriate Qt utility classes for querying the filesystem.
  • Qt evet integrated with QML

    Solved
    2
    0 Votes
    2 Posts
    154 Views
    JoeCFDJ
    engine->rootContext()->setContextProperty( "myKeyEventFilter", &myKeyEventFilter ); in your qml file connect myKeyEventFilter to its signal and then call a func in SystemController.
  • Image rendering and reloading - VRAM

    Unsolved
    2
    0 Votes
    2 Posts
    155 Views
    jsulmJ
    @sampath02 Can you please provide more context to your question? To load a file into RAM you simply read it (using QFile for example). "and when pngs are updated what happens in RAM?" - updated by whom and where?
  • Cannot override FINAL property for delegate and selection

    Unsolved
    4
    0 Votes
    4 Posts
    3k Views
    GrecKoG
    you can specify that an existing property should be required without redeclaring it : https://doc.qt.io/qt-6/qtqml-syntax-objectattributes.html#required-properties In your case: required selected
  • how to disable the click event of parent object in qml ?

    Unsolved
    3
    0 Votes
    3 Posts
    565 Views
    Q
    @Tauqueer no my parent is rectangle and child also rectangle
  • Assign readable string to QML property?

    Solved
    4
    0 Votes
    4 Posts
    270 Views
    J.HilkJ
    @SPlatten the same way, literally :D you can give each and every item has an objectName property https://doc.qt.io/qt-6/qml-qtqml-qtobject.html
  • What does this mean?

    Solved
    3
    0 Votes
    3 Posts
    212 Views
    SPlattenS
    @kkoehne , thank you.
  • Addressable C++ type in QML

    Solved
    4
    0 Votes
    4 Posts
    266 Views
    B
    @SPlatten you haven't created an instance of DataMngr. You are trying to call validateTag on the component type.