KDE HIG - Help needed for Padding and Spacing

Sébastien Laoût slaout at linux62.org
Sat Sep 24 14:17:43 BST 2005


Hello Ellen,

If the GUI is done by coding, the programer can use those static methods:

#include <kdialogbase.h>

* KDialogBase::marginHint()
* KDialogBase::spacingHint()

They return the number of pixels for margins (arround dialogs borders) and 
spacings (between GUI components) in pixels.

I however don't know where it's configured, if it's not hardcoded.
If it's configurable, then it doesn't matter if it's in pixels, isn't it?

Using them make the dialogs (and other windows, of course: those functions are 
usable from anywhere in the code) margins/spacings consistent.

I think it's better to advise those methods instead of saying a number of 
pixels...

I don't know how we can get them when using Qt Designer!

Best regards,
Sébastien Laoût.




More information about the kde-core-devel mailing list