Measure Object

Updated 4 years ago

This documentation applies to plugins for 1.x only!

Documentation for 2.x+ is built into the Plugin Creator of Musescore.

( ⇒ In Musescore press Ctrl+Shift+P, then F1 to bring it up. )

Click here for Documentation for 3.x

Allows access to some info about a single measure of a score.

A new Measure can be created with:
  measure = new Measure();
but it is probably more common to obtain a Measure object through a Cursor:
  measure = myCursor.measure();

See also:

Cursor Object .


Name Type Description
lineBreak bool if true, break the system after this measure
pageNumber integer the number of the page where this measure is drawn (read-only).


QRectF boundingRect()

The bounding box of this measure (in pixels).

QPointF pos()

The position in the page of this measure (in pixels).