[Qt-interest] Margin in QTableView's cell

Scott Aron Bloom Scott.Bloom at sabgroup.com
Mon Sep 14 22:17:07 CEST 2009


You can create a custom style or a custom delegate to do it.

Scott

-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Nikolay Mikheev
Sent: Monday, September 14, 2009 12:43 PM
To: qt-interest
Subject: [Qt-interest] Margin in QTableView's cell

Hi!

I have a trouble with QTableView: when i return pixmap for Qt::DecorationRole, it shows in table, but there's a little margin in left side of cell. Is there any way to remove it in only one column?
At attached image you can see it. Upper white space shoud stay, because image is so, but left is Qt's thing.

--
Best regards, Nikolay Mikheev




More information about the Qt-interest-old mailing list