PDA

View Full Version : [Qt4 - QTableWidget] thickness gridlines



Boy
27th June 2008, 12:05
Hi,

just a very short question, I don't think that it's possible, but I'll give it a shot here:

how can I make the lines of the grid of a QTableWidget thicker?

fanat9
27th June 2008, 14:03
Try setGridStyle( Qt::PenStyle style ) with Qt::CustomDashLine using QPainterPathStroker::setWidth( qreal width );

Boy
27th June 2008, 14:22
Thanks for your respond, but I've tried to figure out what you mean and how to use it...could you give a small sample (pseudo) code ?

standin000
22nd May 2013, 16:41
Thanks for your respond, but I've tried to figure out what you mean and how to use it...could you give a small sample (pseudo) code ?

I have the same confusing, could someone help us, thanks very much!

Santosh Reddy
23rd May 2013, 08:48
Refer QTBUG-11907 (https://bugreports.qt-project.org/browse/QTBUG-11907?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab)

standin000
27th May 2013, 14:36
Refer QTBUG-11907 (https://bugreports.qt-project.org/browse/QTBUG-11907?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab)

thanks very much, I'll try.

standin000
28th May 2013, 01:38
thanks very much, I'll try.

It seems don't need use delegate, use stylesheet instead.

QTableView::item {
border-left: 2px solid white;
border-top: 2px solid white;
}
QTableView{
border-bottom: 2px solid white;
border-right: 2px solid white;
}