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. QTableView: hide vertical lines on windows?
Forum Updated to NodeBB v4.3 + New Features

QTableView: hide vertical lines on windows?

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 4 Posters 910 Views 3 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #5

    Hi,

    Any chances you are on Windows 11 ?

    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
    1
    • D Offline
      D Offline
      davecotter
      wrote on last edited by
      #6

      yes, windows 11

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

        Can you try again forcing the style to windowsvista ?

        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
        1
        • D Offline
          D Offline
          davecotter
          wrote on last edited by davecotter
          #8

          you mean as a test? cuz, you know, i prefer the modern windows style

          actually i'm not sure how to set the style? it's a widgets app.

          Pl45m4P 1 Reply Last reply
          0
          • D davecotter

            you mean as a test? cuz, you know, i prefer the modern windows style

            actually i'm not sure how to set the style? it's a widgets app.

            Pl45m4P Offline
            Pl45m4P Offline
            Pl45m4
            wrote on last edited by
            #9

            @davecotter said in QTableView: hide vertical lines on windows?:

            actually i'm not sure how to set the style? it's a widgets app.

            so...?!

            Try

            QApplication::setStyle(QStyleFactory::create("windowsvista"));
            

            If debugging is the process of removing software bugs, then programming must be the process of putting them in.

            ~E. W. Dijkstra

            1 Reply Last reply
            0
            • D Offline
              D Offline
              davecotter
              wrote on last edited by
              #10

              your suspicion is correct: vista style has no lines:

              Screenshot 2025-02-19 at 4.55.15 PM.png

              Pl45m4P 1 Reply Last reply
              0
              • D Offline
                D Offline
                davecotter
                wrote on last edited by
                #11

                https://bugreports.qt.io/browse/QTBUG-133853

                Christian EhrlicherC 1 Reply Last reply
                1
                • D davecotter

                  your suspicion is correct: vista style has no lines:

                  Screenshot 2025-02-19 at 4.55.15 PM.png

                  Pl45m4P Offline
                  Pl45m4P Offline
                  Pl45m4
                  wrote on last edited by Pl45m4
                  #12

                  @davecotter said in QTableView: hide vertical lines on windows?:

                  your suspicion is correct: vista style has no lines:

                  So what @SGaist was after:
                  There are still some bugs related the "new" windows11 style.

                  Seems like you have to wait until it works correctly (or/and use other styles like fusion or windowsvista in the meantime)
                  Search the bugtracker for reports like these, if there aren't any, you may create your own bugreport so the dev team knows :)

                  Edit: Ok you did already :)


                  If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                  ~E. W. Dijkstra

                  1 Reply Last reply
                  0
                  • D davecotter

                    https://bugreports.qt.io/browse/QTBUG-133853

                    Christian EhrlicherC Offline
                    Christian EhrlicherC Offline
                    Christian Ehrlicher
                    Lifetime Qt Champion
                    wrote on last edited by
                    #13

                    @davecotter said in QTableView: hide vertical lines on windows?:

                    https://bugreports.qt.io/browse/QTBUG-133853

                    You can close it. It's fixed in Qt 6.9 already.

                    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                    Visit the Qt Academy at https://academy.qt.io/catalog

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      davecotter
                      wrote on last edited by
                      #14

                      i have 6.9 beta 2, it is NOT fixed.
                      are you talking about 6.9 beta 3?

                      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