QGeoMapRectangleObject Class ReferenceThe QGeoMapRectangleObject class is a QGeoMapObject used to draw a rectangular region on a map. More... #include <QGeoMapRectangleObject> Inherits QGeoMapObject. Properties
Public Functions
Reimplemented Public Functions
Signals
Additional Inherited Members
Detailed DescriptionThe QGeoMapRectangleObject class is a QGeoMapObject used to draw a rectangular region on a map. The rectangle is specified by either a valid QGeoBoundingBox instance or a pair of valid QGeoCoordinate instances which represent the top left and bottom right coordinates of the rectangle respectively. Property Documentation
|
QGeoCoordinate | bottomRight () const |
void | setBottomRight ( const QGeoCoordinate & bottomRight ) |
Notifier signal:
void | bottomRightChanged ( const QGeoCoordinate & bottomRight ) |
This property holds this property holds the brush that will be used to draw this object.
The brush is used to fill in rectangle.
The outline around the perimeter of the rectangle is drawn using the QGeoMapRectangleObject::pen property.
Access functions:
QBrush | brush () const |
void | setBrush ( const QBrush & brush ) |
Notifier signal:
void | brushChanged ( const QBrush & brush ) |
This property holds this property holds the pen that will be used to draw this object.
The pen is used to draw an outline around the rectangle. The rectangle is filled using the QGeoMapRectangleObject::brush property.
The pen will be treated as a cosmetic pen, which means that the width of the pen will be independent of the zoom level of the map.
Access functions:
QPen | pen () const |
void | setPen ( const QPen & pen ) |
Notifier signal:
void | penChanged ( const QPen & pen ) |
This property holds this property holds the top left coordinate of the rectangle to be drawn by this rectangle object.
The default value of this property is an invalid coordinate. While the value of this property is invalid the rectangle object will not be displayed.
Access functions:
QGeoCoordinate | topLeft () const |
void | setTopLeft ( const QGeoCoordinate & topLeft ) |
Notifier signal:
void | topLeftChanged ( const QGeoCoordinate & topLeft ) |
Constructs a new rectangle object.
Constructs a new rectangle object based on the bounding box boundingBox.
Constructs a new rectangle object with the top left coordinate at topLeft and the bottom right coordinate at bottomRight.
Destroys this rectangle object.
This signal is emitted when the bottom right coordinate of this rectangle object has changed.
The new value is bottomRight.
Returns a QGeoBoundingBox instance which corresponds to the rectangle that will be drawn by this object.
This is equivalent to
QGeoMapRectangleObject *object;
// setup object
QGeoBoundingBox(object->topLeft(), object->bottomRight());
See also setBounds().
This signal is emitted when the brush used to fill in the interior of this rectangle object has changed.
The new value is brush.
This signal is emitted when the pen used to draw the perimeter of this rectangle object has changed.
The new value is pen.
Sets the rectangle that will be drawn by this object to bounds.
This is equivalent to
QGeoMapRectangleObject *object;
// setup object
object->setTopLeft(bounds.topLeft());
object->setBottomRight(bounds.bottomRight());
See also bounds().
This signal is emitted when the top left coordinate of this rectangle object has changed.
The new value is topLeft.
Reimplemented from QGeoMapObject::type().