0

I have a DelayButton that I would like to stop flashing (after it's been pressed) when the operation triggered by the button is completed.

However, it appears that none of the properties DelayButton are writeable. Is there a way to stop the flashing, or must it always flash until the user presses the button again?

Kyle Strand
  • 15,941
  • 8
  • 72
  • 167

1 Answers1

2

DelayButton is a subclass of the Button. The flashing state is actually linked to the checked property of the Button, so the button.checked = false will help.

You can always look into the source code: http://code.qt.io/cgit/qt/qtquickcontrols.git/tree/src/extras/DelayButton.qml

Velkan
  • 7,067
  • 6
  • 43
  • 87
  • Perfect. Since the flashing is specific to `DelayButton`, I didn't think to check whether it's affected by any of the properties in the base class. Thanks. – Kyle Strand May 06 '16 at 15:25