[Qt-interest] Spacing between the content on QTableView and its scrollbars

Rajiv Podar Rajiv.podar at autoform.com
Fri Dec 12 16:06:36 CET 2008


Hi,

For this you must need to customise the widget. i.e can be done with by Qt-styles or style sheets.
For more information study QStyle class.

I hope this information will help you.

Thanks & Regards,
Rajiv Podar
________________________________
From: qt-interest-bounces at trolltech.com [qt-interest-bounces at trolltech.com] On Behalf Of Marian Ciobanu [ciobi at inbox.com]
Sent: Friday, December 12, 2008 8:19 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] Spacing between the content on QTableView and its scrollbars

I've been reading the documentation, looking through the source code, doing screen captures and running test programs for several hours now, but I can't find an answer to this question:

In some styles (e.g. Motif or CDE) there is a spacing of several pixels between a QTableView and its scrollbar(s), while in others (e.g. Plastique) there is no such spacing. More precisely, this is 4 pixels for Motif and 2 for CDE, as can be seen from the screen captures and from the test programs.

(I'm running openSUSE 10.3 64bit, with Qt 4.3.1, so on other systems the values might be different.)

The question is: How to determine the spacing programatically? (I guess using QStyle::pixelMetric(), but nothing seemed to match.)

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081212/dc52efc3/attachment.html 


More information about the Qt-interest-old mailing list