Using StyleSheets is bad WAS Re: Konqueror lineedit Bug

Rafael Fernández López ereslibre at kde.org
Mon Nov 19 22:45:41 GMT 2007


Hi,

> My idea would be removing the stylesheet, because passing the font to the
> stylesheet string "fixes" the current bug but will break when someone calls
> setFont over a KLineEdit. But i did not find a way to set "padding-right"
> property on a QLineEdit without using StyleSheets.

Well, it is only needed to reimplement paintEvent() and override some stuff on 
event() method to check if clicks were made on that part of the widget.

If it is necessary, I volunteer for this purpose.

> And may i suggest adding a krazy check about setStyleSheet calls? If Qt has
> that restriction about fonts and styleSheets i think using styleSheets
> should be recommended against.

++


Rafael Fernández López

GPG Fingerprint: B9F4 4730 43F8 FFDD CC5E BA8E 724E 406E 3F01 D070
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071119/187cad9b/attachment.sig>


More information about the kde-core-devel mailing list