summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_qt3support_painting_q3paintdevicemetrics.cpp
blob: 1e807d5ccda58a7f6a0b05560211a812621e5ebe (plain)
1
2
3
4
//! [0]
Q3PaintDeviceMetrics pdm(myWidget);
double aspect = (double)pdm.widthMM() / (double)pdm.heightMM();
//! [0]