MuseScore Plugins  3.5
Plugins API for MuseScore
Public Member Functions | Properties | List of all members
ScoreElement Class Reference

Base class for most of object wrappers exposed to QML. More...

Inheritance diagram for ScoreElement:
Inheritance graph
[legend]
Collaboration diagram for ScoreElement:
Collaboration graph
[legend]

Public Member Functions

Q_INVOKABLE QString userName () const
 Human-readable element type name. More...
 
Q_INVOKABLE bool is (Ms::PluginAPI::ScoreElement *other)
 Checks whether two variables represent the same object. More...
 

Properties

int type
 Type of this element. More...
 
QString name
 Name of this element's type, not localized. More...
 

Detailed Description

Base class for most of object wrappers exposed to QML.

Member Function Documentation

◆ is()

Q_INVOKABLE bool is ( Ms::PluginAPI::ScoreElement other)
inline

Checks whether two variables represent the same object.

Since
MuseScore 3.3

◆ userName()

QString userName ( ) const

Human-readable element type name.

Returns
Name of the element type, translated according to the current MuseScore locale settings.

Property Documentation

◆ name

QString name
read

Name of this element's type, not localized.

Use ScoreElement::userName() to obtain a localized element name suitable for usage in a user interface.

◆ type

int type
read

Type of this element.

See PluginAPI::PluginAPI::Element for the list of possible values.


The documentation for this class was generated from the following files: