75 bool myOk =
setSize(formatString);
The length stores a length and converts between units.
bool isNonPositive() const
Check if length is positive.
The paperSize class identifies and stores paper sizes.
void setHeight(length height)
Sets paper height.
void setSize(format f)
Sets paperSize to a given standard format.
paperSize(format f)
Constructs paperSize for given standard format.
bool isEmpty() const
Checks for empty paper size.
paperSize()
Constructs empty paperSize.
bool setSize(QString formatString)
Reads paperSize from a string.
paperSize(QString formatString, bool *ok=0)
Constructs paperSize from a string.
format
List of supported standard sizes.
@ Letter
US Standard Letter.
length width() const
Width of the paper.
paperSize(length width, length height)
Constructs paperSize of given width and height.
length height() const
Height of the paper.
void setWidth(length width)
Sets paper width.