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.2k 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 8 Dec 2020, 12:54 last edited by Qt embedded developer 12 Aug 2020, 13:41
    #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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 8 Dec 2020, 14:44 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 9 Dec 2020, 06:13
      0
      • S SGaist
        8 Dec 2020, 14:44

        Hi,

        Can you shows a picture of your current situation ?

        Q Offline
        Q Offline
        Qt embedded developer
        wrote on 9 Dec 2020, 06:13 last edited by
        #3

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

        J 1 Reply Last reply 9 Dec 2020, 06:17
        0
        • Q Qt embedded developer
          9 Dec 2020, 06:13

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

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 9 Dec 2020, 06:17 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 9 Dec 2020, 08:59
          0
          • J jsulm
            9 Dec 2020, 06:17

            @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 9 Dec 2020, 08:59 last edited by Qt embedded developer 12 Sept 2020, 09:00
            #5

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

            J J 2 Replies Last reply 9 Dec 2020, 09:08
            0
            • Q Qt embedded developer
              9 Dec 2020, 08:59

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

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 9 Dec 2020, 09:08 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
                9 Dec 2020, 08:59

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

                J Offline
                J Offline
                JonB
                wrote on 9 Dec 2020, 09:10 last edited by JonB 12 Sept 2020, 09:21
                #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
                • J Offline
                  J Offline
                  JonB
                  wrote on 9 Dec 2020, 09:14 last edited by JonB 12 Sept 2020, 09:19
                  #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
                  • S SGaist
                    8 Dec 2020, 14:44

                    Hi,

                    Can you shows a picture of your current situation ?

                    Q Offline
                    Q Offline
                    Qt embedded developer
                    wrote on 9 Dec 2020, 09:35 last edited by
                    #9
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • Q Offline
                      Q Offline
                      Qt embedded developer
                      wrote on 9 Dec 2020, 09:57 last edited by Qt embedded developer 12 Oct 2020, 13:38
                      #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
                      • S SGaist
                        8 Dec 2020, 14:44

                        Hi,

                        Can you shows a picture of your current situation ?

                        Q Offline
                        Q Offline
                        Qt embedded developer
                        wrote on 10 Dec 2020, 09:05 last edited by
                        #11

                        @SGaist QTablewidgetwithoutoutsideborder.png

                        J 1 Reply Last reply 10 Dec 2020, 09:15
                        0
                        • Q Qt embedded developer
                          10 Dec 2020, 09:05

                          @SGaist QTablewidgetwithoutoutsideborder.png

                          J Offline
                          J Offline
                          JonB
                          wrote on 10 Dec 2020, 09:15 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

                          1/12

                          8 Dec 2020, 12:54

                          • Login

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