Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
QPainter 外部の paintEvent 描画メソッドのフォント メトリックを取得する方法は? 画面にペイントする前にこれが必要です。
ペイント イベントの外でテキスト レイアウトを行う必要がある場合は、使用するフォントから QFontMetrics を作成するだけです。