Obsolete Members for QApplication

QApplication 클래스의 다음 멤버는 더 이상 사용되지 않습니다. 이들은 이전 소스 코드의 작동을 유지하기 위해 제공됩니다. 새 코드에서는 사용하지 않는 것이 좋습니다.

정적 공용 멤버

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

멤버 함수 문서

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

이 함수는 더 이상 사용되지 않습니다. 새 코드에서 이 함수를 사용하지 않는 것이 좋습니다.

대신 QFontMetricsF 생성자를 사용하세요. 애플리케이션 글꼴에 대한 표시(화면) 글꼴 메트릭을 반환합니다.

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/WindowDeactivateFocusIn/FocusOut 이벤트를 모든 적절한 위젯에 보냅니다. 그러면 창이 활성 상태로 표시되고(예: 줄 편집의 커서가 깜박임) 도구 팁이 활성화됩니다.

activeWindow() 및 QWidget::activateWindow()도 참조하세요 .

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