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. Multiple lines in a QHeaderView
Qt 6.11 is out! See what's new in the release blog

Multiple lines in a QHeaderView

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.4k Views 1 Watching
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I am trying to render multiple word-wrapped lines in a QHeaderView; my implementation of headerData() returns a string that has multiple '\n' characters in it (essentially, a word-wrapped string)

    It mostly works except for the following bug:

    !http://s30.postimg.org/4o2gtzsg1/Capture.png()!

    Single line headers are all grey whereas this header has the white gap at the top. How would I go about fixing this color issue? If I can fix this issue then I'd say I have a working solution.

    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