Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved QTableWidget Header Text

    General and Desktop
    qt4 designer qtablewidget stylesheet
    2
    6
    3095
    Loading More Posts
    • 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
      DougyDrumz last edited by

      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 Reply Quote 1
      • mrjj
        mrjj Lifetime Qt Champion last edited by

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

        1 Reply Last reply Reply Quote 1
        • D
          DougyDrumz last edited by

          Thanks! Now I remember this from the tab widget.

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

          Dougy Drumz

          mrjj 1 Reply Last reply Reply Quote 0
          • mrjj
            mrjj Lifetime Qt Champion @DougyDrumz last edited by

            @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 Reply Quote 1
            • D
              DougyDrumz last edited by

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

              Dougy Drumz

              mrjj 1 Reply Last reply Reply Quote 0
              • mrjj
                mrjj Lifetime Qt Champion @DougyDrumz last edited by

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

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post