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. QTableWidget Header Text
Forum Update on Monday, May 27th 2025

QTableWidget Header Text

Scheduled Pinned Locked Moved Solved General and Desktop
qt4designerqtablewidgetstylesheet
6 Posts 2 Posters 3.6k 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.
  • D Offline
    D Offline
    DougyDrumz
    wrote on 8 Dec 2015, 17:46 last edited by
    #1

    I know how to set the row and column header text in code, but how do you set it in designer? In a stylesheet?

    Dougy Drumz

    1 Reply Last reply
    1
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 8 Dec 2015, 18:10 last edited by
      #2

      Hi
      Right click it and select "Edit Items " in top of menu.

      1 Reply Last reply
      2
      • D Offline
        D Offline
        DougyDrumz
        wrote on 8 Dec 2015, 18:38 last edited by
        #3

        Thanks! Now I remember this from the tab widget.

        Is there a way to specify a width for the columns?

        Dougy Drumz

        M 1 Reply Last reply 8 Dec 2015, 18:42
        0
        • D DougyDrumz
          8 Dec 2015, 18:38

          Thanks! Now I remember this from the tab widget.

          Is there a way to specify a width for the columns?

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 8 Dec 2015, 18:42 last edited by
          #4

          @DougyDrumz
          Not that I have seen. :)
          Note: there is the properties button to
          allow font change and text alignment with more etc.

          1 Reply Last reply
          1
          • D Offline
            D Offline
            DougyDrumz
            wrote on 8 Dec 2015, 18:45 last edited by
            #5

            Thanks. I know how to do it in code, so I'll handle it there.

            Dougy Drumz

            M 1 Reply Last reply 8 Dec 2015, 18:46
            0
            • D DougyDrumz
              8 Dec 2015, 18:45

              Thanks. I know how to do it in code, so I'll handle it there.

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 8 Dec 2015, 18:46 last edited by
              #6

              @DougyDrumz
              Well it would be nice if one could just grab and drag to size them.
              maybe in 6.5 :)

              1 Reply Last reply
              0

              1/6

              8 Dec 2015, 17:46

              • Login

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