Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. The text drawn by paint scrolls with the scroll bar
Qt 6.11 is out! See what's new in the release blog

The text drawn by paint scrolls with the scroll bar

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 262 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nan Feng
    wrote on last edited by
    #1

    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?

    K 1 Reply Last reply
    0
    • N Nan Feng

      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?

      K Offline
      K Offline
      KAMblLLl
      wrote on last edited by
      #2

      @Nan-Feng Hello
      Did you find the answer?
      I have the same issue and do not know how to fix it

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved