QTableView: hide vertical lines on windows?
-
yes i tried that. there is an example called "Frozen Column" that demonstrates Table View using Widgets.
i added lines to set the grid pen to none, line that hides the grid, and another that set the grid to RED.
horizontal lines were removed (or 100% transparent?), but vertical lines were still showing, only in gray color, not RED.i actually think this must be a bug in Qt 6.9?
i guess if i HAVE to make a custom draw delegate i will, but wow that's a LOT of work for something that should be a one-liner.

-
Hi,
Any chances you are on Windows 11 ?
-
yes, windows 11
-
Can you try again forcing the style to
windowsvista? -
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.
-
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.
@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")); -
your suspicion is correct: vista style has no lines:

-
-
your suspicion is correct: vista style has no lines:

@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"windows11style.Seems like you have to wait until it works correctly (or/and use other styles like
fusionorwindowsvistain 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 :)
-
@davecotter said in QTableView: hide vertical lines on windows?:
You can close it. It's fixed in Qt 6.9 already.
-
i have 6.9 beta 2, it is NOT fixed.
are you talking about 6.9 beta 3?