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. Underlining tableview header
Qt 6.11 is out! See what's new in the release blog

Underlining tableview header

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 949 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.
  • G Offline
    G Offline
    gabor53
    wrote on last edited by
    #1

    Hi,
    I have the following header from a QStandardItemModel displaying data from a db in a table:

        ui->tableView_fix->horizontalHeader ()->setStyleSheet ("QHeaderView{font: 14pt Arial; color: blue; font-weight: bold;}");
    

    How can I underline the header? Thank you.

    1 Reply Last reply
    0
    • RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by
      #2

      @gabor53
      Have you tried text-decoration property with type underline?

      --Alles ist gut.

      G 1 Reply Last reply
      4
      • RatzzR Ratzz

        @gabor53
        Have you tried text-decoration property with type underline?

        G Offline
        G Offline
        gabor53
        wrote on last edited by
        #3

        @Ratzz
        Thank you. That worked.

        1 Reply Last reply
        1

        • Login

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