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 の drawRect を使用するときに Qt がどのように境界線を作成するかを知りたいです。これは、3 つの長方形を並べて描画しようとしているのですが、すべてのペン サイズで完全に接触させるのに苦労しているためです。
QPainterのドキュメントは次のようにdrawRect述べています。
QPainter
drawRect
ストロークされた長方形のサイズは、[入力長方形]にペンの幅を加えたものです。
したがって、次のようになります。