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.
最終的に、実際の位置が必要になると仮定して、ペイント イベントの Qt のソースに入りsectionViewportPosition()、QTableWidget/QTableView の左上隅に対する実際のセクション位置を示す を使用します。
sectionViewportPosition()
それを使用してmapToGlobal()、セクションのグローバルな水平位置を取得できます。
mapToGlobal()