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. border on specific cell in tablewidget or in gridview?
Forum Update on Monday, May 27th 2025

border on specific cell in tablewidget or in gridview?

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 2 Posters 1.7k 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.
  • Y Offline
    Y Offline
    Yash001
    wrote on last edited by
    #1

    How can set the border in specific Cell in tablewidget or in Gridview?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      How do you define which cell does have these special borders ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        Yash001
        wrote on last edited by
        #3

        I want to put Two widget into the one cell. so I am trying to hide the border-right of all cell of First colomn.

        my requirement is to put " a =2.63" in one cell.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          What do you mean by GridView ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          Y 1 Reply Last reply
          0
          • SGaistS SGaist

            What do you mean by GridView ?

            Y Offline
            Y Offline
            Yash001
            wrote on last edited by
            #5

            @SGaist i can use anything tablewidget or gridview. but I want broder on some specific cell.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Again, what do you mean by GridView ? QGridView was a class that dates back to Qt 3 and has been removed in Qt 4.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              Y 1 Reply Last reply
              0
              • Y Offline
                Y Offline
                Yash001
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • SGaistS SGaist

                  Again, what do you mean by GridView ? QGridView was a class that dates back to Qt 3 and has been removed in Qt 4.

                  Y Offline
                  Y Offline
                  Yash001
                  wrote on last edited by
                  #8

                  @SGaist Gridview is gridlayout. I create the object of gridlayout class, and set the all widget in to the each cell as per requirement.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Then see this version of addWidget with the rowSpan parameter.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • Y Offline
                      Y Offline
                      Yash001
                      wrote on last edited by
                      #10

                      Thank you sir you for you reply. Yes I can add the widget into cell using addWidget. Now I want setup border surrounding cell which is located at row - 2, column - 2.

                      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