以下成员源于类 QApplication 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(deprecated in 6.0)
QFontMetrics
|
fontMetrics () |
(deprecated in 6.5)
void
|
setActiveWindow (QWidget * active ) |
[static, deprecated in 6.0]
QFontMetrics
QApplication::
fontMetrics
()
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 QFontMetricsF ( qApp -> font ()) instead.
Returns display (screen) font metrics for the application font. For more information about the difference between QFontMetrics and QFontMetricsF , see the detailed description of QFontMetrics .
另请参阅 font (), setFont (), QWidget::fontMetrics (),和 QPainter::fontMetrics ().
[static, deprecated in 6.5]
void
QApplication::
setActiveWindow
(
QWidget
*
active
)
This function is deprecated since 6.5. We strongly advise against using it in new code.
使用 QWidget::activateWindow () 代替。
将活动窗口设为 active 小部件以响应系统事件。函数调用自平台特定事件处理程序。
警告: 此函数做 not 设置活动 Widget 的键盘聚焦。调用 QWidget::activateWindow () 代替。
它设置 activeWindow () 和 focusWidget () 属性并发送适当 WindowActivate / WindowDeactivate and FocusIn / FocusOut 事件到所有合适 Widget。然后,将按活动状态描绘窗口 (如:行编辑中的光标会眨眼),且它将启用工具提示。
另请参阅 activeWindow () 和 QWidget::activateWindow ().