Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ îðèãèíàëüíîãî äîêóìåíòà : http://rtm-cs.sinp.msu.ru/manual/qt/qpaintdevicemetrics.html
Äàòà èçìåíåíèÿ: Sun Jul 12 02:58:58 1998
Äàòà èíäåêñèðîâàíèÿ: Mon Oct 1 21:13:34 2012
Êîäèðîâêà:
Qt Toolkit - QPaintDeviceMetrics Class Qt logo

QPaintDeviceMetrics Class Reference


The QPaintDeviceMetrics class provides information about a paint device. More...

#include <qpaintdevicemetrics.h>

List of all member functions.

Public Members


Detailed Description

The QPaintDeviceMetrics class provides information about a paint device.

Sometimes it is necessary to obtain information about the physical size of a paint device when drawing graphics.

Example:

    QPaintDeviceMetrics pdm( myWidget );
    float aspect = (float)pdm.widthMM / (float)pdm.heightMM();

Examples: application/application.cpp


Member Function Documentation

QPaintDeviceMetrics::QPaintDeviceMetrics ( const QPaintDevice * pd )

Constructs a metric for the paint device pd.

int QPaintDeviceMetrics::depth () const

Returns the bit depth (number of bit planes) of the paint device.

int QPaintDeviceMetrics::height () const

Returns the height of the paint device, in default coordinate system units (e.g. pixels for QPixmap and QWidget).

Examples: application/application.cpp

int QPaintDeviceMetrics::heightMM () const

Returns the height of the paint device, measured in millimeters.

int QPaintDeviceMetrics::numColors () const

Returns the number of different colors available for the paint device.

int QPaintDeviceMetrics::width () const

Returns the width of the paint device, in default coordinate system units (e.g. pixels for QPixmap and QWidget).

Examples: application/application.cpp

int QPaintDeviceMetrics::widthMM () const

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-98 Troll Tech, all rights reserved.

It was generated from the following files:


Copyright © 1998 Troll TechTrademarks
Qt version 1.40