DialogHeader.extraContent read-only
I was trying to find an easy way to show some info in at dialog, and stumbled over DialogHeader.extraContent, but it gives an error when running: Invalid property assignment: "extraContent" is a read-only property
Dialog {
id: timersDialog;
allowedOrientations: Orientation.Portrait | Orientation.Landscape;
DialogHeader {
id: header;
dialog: timersDialog
title: "Title"
extraContent:
Label {
text: "Extra content"
}
}}
What is the property exactly for then?
Long shot but try with reserveExtraContent bool set to true
Allstar12345 ( 2018-12-21 18:10:55 +0300 )editGood suggestion, but nope
Tanghus ( 2018-12-21 19:26:33 +0300 )editIn documentation of
reserveExtraContent
it says: "This property defaults to true if extraContent has one or more children; otherwise false." so perhaps you could try add a child item to it, instead of using it directly. I believe you can also make a subclass of it...Edit: That's what @coderus said.
Direc ( 2018-12-23 12:19:47 +0300 )edit