Obsolete Members for QApplication

QApplication 클래스의 다음 멤버들은 더 이상 사용되지 않습니다. 이들은 기존 소스 코드가 계속 작동하도록 하기 위해 제공됩니다. 새로운 코드에서는 이를 사용하지 않는 것을 강력히 권장합니다.

정적 공용 멤버

(deprecated in 6.0) QFontMetrics fontMetrics()
(deprecated in 6.5) void setActiveWindow(QWidget *active)

멤버 함수 설명

[static, deprecated in 6.0] QFontMetrics QApplication::fontMetrics()

이 함수는 6.0 버전부터 더 이상 권장되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.

대신 ` QFontMetricsF(qApp->font())`를 사용하십시오.

애플리케이션 글꼴에 대한 디스플레이(화면) 글꼴 메트릭을 반환합니다. QFontMetrics 와 QFontMetricsF 의 차이점에 대한 자세한 내용은 QFontMetrics 의 상세 설명을 참조하십시오.

font(), setFont(), QWidget::fontMetrics(), QPainter::fontMetrics()도 참조하십시오 .

[static, deprecated in 6.5] void QApplication::setActiveWindow(QWidget *active)

이 함수는 6.5 버전부터 더 이상 사용되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.

대신 ` QWidget::activateWindow()`를 사용하십시오.

시스템 이벤트에 반응하여 활성 창을 active 위젯으로 설정합니다. 이 함수는 플랫폼별 이벤트 핸들러에서 호출됩니다.

경고: 이 함수는 활성 위젯에 키보드 포커스를 설정하지 않습니다. 대신 QWidget::activateWindow()를 호출하십시오.

이 함수는 activeWindow() 및 focusWidget() 속성을 설정하고, 모든 관련 위젯에 적절한 WindowActivate/WindowDeactivate 및 FocusIn/FocusOut 이벤트를 전송합니다. 그러면 창이 활성 상태로 렌더링되며(예: 라인 편집기의 커서가 깜빡임), 툴팁이 활성화됩니다.

activeWindow() 및 QWidget::activateWindow()도 참조하십시오 .

© 2026 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.