Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. why my Qtablewidget not show line around vertical and horizontal header item ?
Forum Updated to NodeBB v4.3 + New Features

why my Qtablewidget not show line around vertical and horizontal header item ?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
12 Posts 4 Posters 1.3k 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.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by Qt embedded developer
    #1

    My q table widget show box around cell but it not shows box around header item.

    my vertical hear item does not have top line and my horizontal header item does not have left line.

    how to get this line around header item ?

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

      Hi,

      Can you shows a picture of your current situation ?

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

      Q 3 Replies Last reply
      0
      • SGaistS SGaist

        Hi,

        Can you shows a picture of your current situation ?

        Q Offline
        Q Offline
        Qt embedded developer
        wrote on last edited by
        #3

        @SGaist can you tell me how to attach direct image in reply

        jsulmJ 1 Reply Last reply
        0
        • Q Qt embedded developer

          @SGaist can you tell me how to attach direct image in reply

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Qt-embedded-developer said in why my Qtablewidget not show line around vertical and horizontal header item ?:

          can you tell me how to attach direct image in reply

          ?
          If you're writing a reply there is a tool bar above your text. One of the buttons there allows you to add a picture...

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          Q 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Qt-embedded-developer said in why my Qtablewidget not show line around vertical and horizontal header item ?:

            can you tell me how to attach direct image in reply

            ?
            If you're writing a reply there is a tool bar above your text. One of the buttons there allows you to add a picture...

            Q Offline
            Q Offline
            Qt embedded developer
            wrote on last edited by Qt embedded developer
            #5

            @jsulm ! there is picture icon. on click of it shows "[alt text](image url)" but there is no browsing directory option i think.

            jsulmJ JonBJ 2 Replies Last reply
            0
            • Q Qt embedded developer

              @jsulm ! there is picture icon. on click of it shows "[alt text](image url)" but there is no browsing directory option i think.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Qt-embedded-developer You have to upload it to some file sharing service and put the URL as "image url".

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • Q Qt embedded developer

                @jsulm ! there is picture icon. on click of it shows "[alt text](image url)" but there is no browsing directory option i think.

                JonBJ Online
                JonBJ Online
                JonB
                wrote on last edited by JonB
                #7

                @jsulm

                You have to upload it to some file sharing service and put the URL as "image url".

                True, but you don't have to do that manually, actually picking your own service to upload to!

                @Qt-embedded-developer
                Do not use the Link icon, which generates [link text](link url). Instead use the Upload image "cloud" icon at the far right, which allows you to select a previously saved local file image screenshot (or just drag or paste it here):
                Screenshot from 2020-12-09 09-09-18.png
                The above picture generated

                ![Screenshot from 2020-12-09 09-09-18.png](https://ddgobkiprc33d.cloudfront.net/6468001c-fe9e-410b-b07a-c038b5e9c543.png) 
                

                Thank you, Mr CloudFront :)

                1 Reply Last reply
                2
                • JonBJ Online
                  JonBJ Online
                  JonB
                  wrote on last edited by JonB
                  #8

                  While we are waiting for the OP's. Is the following the same as his situation? My horizontal header items always miss out the far right, last column's vertical ender line, while the body rows do have it:
                  Screenshot from 2020-12-09 09-11-25.png
                  You can see the divider lines everywhere except the top right ending of the last horizontal header item, only. It has always been like this. I don't really see why the body rows do end in a vertical but the header does not, what is the consistency/reason here?

                  1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Hi,

                    Can you shows a picture of your current situation ?

                    Q Offline
                    Q Offline
                    Qt embedded developer
                    wrote on last edited by
                    #9
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • Q Offline
                      Q Offline
                      Qt embedded developer
                      wrote on last edited by Qt embedded developer
                      #10

                      my question answer is

                      change style sheet
                      border:1px outset solid #C4C4C3;
                      border-radius:0px;

                      but i think actually it not visually look good because overlap of border happens BorderOverlap.png

                      1 Reply Last reply
                      0
                      • SGaistS SGaist

                        Hi,

                        Can you shows a picture of your current situation ?

                        Q Offline
                        Q Offline
                        Qt embedded developer
                        wrote on last edited by
                        #11

                        @SGaist QTablewidgetwithoutoutsideborder.png

                        JonBJ 1 Reply Last reply
                        0
                        • Q Qt embedded developer

                          @SGaist QTablewidgetwithoutoutsideborder.png

                          JonBJ Online
                          JonBJ Online
                          JonB
                          wrote on last edited by
                          #12

                          @Qt-embedded-developer
                          Your screenshot issue is effectively the same as mine posted earlier. I too wouldn't mind knowing why/how to fix the missing lines on a header, though personally I won't die in a ditch over it....

                          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