本文整理汇总了C++中QDebug::verbosity方法的典型用法代码示例。如果您正苦于以下问题:C++ QDebug::verbosity方法的具体用法?C++ QDebug::verbosity怎么用?C++ QDebug::verbosity使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QDebug
的用法示例。
在下文中一共展示了QDebug::verbosity方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: saver
Q_GUI_EXPORT QDebug operator<<(QDebug debug, const QScreen *screen)
{
const QDebugStateSaver saver(debug);
debug.nospace();
debug << "QScreen(" << (const void *)screen;
if (screen) {
debug << ", name=" << screen->name();
if (debug.verbosity() > 2) {
if (screen == QGuiApplication::primaryScreen())
debug << ", primary";
debug << ", geometry=";
formatRect(debug, screen->geometry());
debug << ", available=";
formatRect(debug, screen->availableGeometry());
debug << ", logical DPI=" << screen->logicalDotsPerInchX()
<< ',' << screen->logicalDotsPerInchY()
<< ", physical DPI=" << screen->physicalDotsPerInchX()
<< ',' << screen->physicalDotsPerInchY()
<< ", devicePixelRatio=" << screen->devicePixelRatio()
<< ", orientation=" << screen->orientation()
<< ", physical size=" << screen->physicalSize().width()
<< 'x' << screen->physicalSize().height() << "mm";
}
}
debug << ')';
return debug;
}