The text drawn by paint scrolls with the scroll bar
-
Hi. QStyledItemDelegate has recently been used as a proxy for QListView. But I ran into some problems drawing content in QStyledItemDelegate's paint function. The drawText default X position is the start position. I wanted to shift a little to the right, but that way. If QListView has a horizontal scroll bar, the text position does not follow the root east bar. Is there any way to do it?
-
Hi. QStyledItemDelegate has recently been used as a proxy for QListView. But I ran into some problems drawing content in QStyledItemDelegate's paint function. The drawText default X position is the start position. I wanted to shift a little to the right, but that way. If QListView has a horizontal scroll bar, the text position does not follow the root east bar. Is there any way to do it?