QTableView: hide vertical lines on windows?
-
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?