Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do we show the gridline in GridLayout in Qt?

Tags:

qt

I was wondering if there is an easy way to show the grid lines separating sections in a grid layout governed by the QGridLayout class. The doc has been failing me so far but I still feel there is an easy way to achieve this.

like image 547
Marcus Avatar asked Sep 02 '25 02:09

Marcus


1 Answers

There's no built-in function for this. Unfortunately you'd have to implement your own grid line using QLine to border the widgets.

like image 199
Dustin R Avatar answered Sep 05 '25 00:09

Dustin R