QML: Note::accidental() always returns 'undefined'
This is a developer question: (I hope this is not the wrong place to ask this)
Calls to Note::accidental() method inside a qml plugin always return 'undefined'. However, looking at the Note object with qdb debugger, says that Note::_accidental is not always 0x00.
You can try using the plugin I attached. It shows some information on every note in the current score. Use a score with some notes, and add an accidental to at least one note. This note should have a valid pointer to an Accidental object.
AFAIK Segment::measure() is quite similar to Note::accidental(): They both return a pointer. Therefore the plugin also prints out the result of Segment::measure(). And it gets valid pointers from this method.
I'm using build cc3e8e4 on Ubuntu 12.04
Attachment | Size |
---|---|
myTestPlugin.zip | 658 bytes |
Comments
I checked and indeed the Accidental object was not exposed to the plugin interface.
Should work in next nighty.
There are probably other documented objects which are not exposed. This is work in progress.