[QML] summary of QML signal and event processing mechanism

1, Introduction QML has a signal and handler mechanism, in which the signal is an event and responds to the signal through the signal handler. When a signal is issued, the corresponding signal handler is called. Placing logic (such as scripts or other operations) in the handler allows the component to respond to events. 2, Receive signals ...

Posted on Sat, 20 Nov 2021 18:03:10 -0500 by Shaun13

QmlBook notes (14): particle system example

import QtQuick 2.9 import QtQuick.Window 2.2 import QtQuick.Particles 2.0 Window { visible: true width: 1000; height: 800 Rectangle { id: root; anchors.fill: parent color: "#1f1f1f" ParticleSystem //particle system { id: particles } Emitter //Emitters e ...

Posted on Wed, 27 Oct 2021 04:51:26 -0400 by Seol