The QPaintDeviceMetrics class provides information about a paint device. More...
#include <qpaintdevicemetrics.h>
Sometimes it is necessary to obtain information about the physical size of a paint device when drawing graphics.
Example:
QPaintDeviceMetrics pdm( myWidget ); double aspect = (double)pdm.widthMM / (double)pdm.heightMM();
Constructs a metric for the paint device pd.
Returns the bit depth (number of bit planes) of the paint device.
Returns the height of the paint device, in default coordinate system units (e.g. pixels for QPixmap and QWidget).
Returns the height of the paint device, measured in millimeters.
Returns the number of different colors available for the paint device.
Returns the width of the paint device, in default coordinate system units (e.g. pixels for QPixmap and QWidget).
Returns the width of the paint device, measured in millimeters.
Search the documentation, FAQ, qt-interest archive and more (uses
www.troll.no):
This file is part of the Qt toolkit, copyright © 1995-99 Troll Tech, all rights reserved.
Copyright © 1999 Troll Tech | Trademarks | Qt version 2.0.2
|