Obsolete Members for QApplication
The following members of class QApplication are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
Static Public Members
(deprecated) QFontMetrics | fontMetrics() |
(deprecated (6.5)) void | setActiveWindow(QWidget *active) |
Member Function Documentation
[static]
QFontMetrics QApplication::fontMetrics()
This function is deprecated. We strongly advise against using it in new code.
Use the QFontMetricsF constructor instead. Returns display (screen) font metrics for the application font.
See also font(), setFont(), QWidget::fontMetrics(), and QPainter::fontMetrics().
[static]
void QApplication::setActiveWindow(QWidget *active)
This function is deprecated since 6.5. We strongly advise against using it in new code.
Use QWidget::activateWindow() instead.
Sets the active window to the active widget in response to a system event. The function is called from the platform specific event handlers.
Warning: This function does not set the keyboard focus to the active widget. Call QWidget::activateWindow() instead.
It sets the activeWindow() and focusWidget() attributes and sends proper WindowActivate/WindowDeactivate and FocusIn/FocusOut events to all appropriate widgets. The window will then be painted in active state (e.g. cursors in line edits will blink), and it will have tool tips enabled.
See also activeWindow() and QWidget::activateWindow().
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.