[Interest] qss vs qstyle
Thiago Macieira
thiago.macieira at intel.com
Mon Oct 28 15:29:39 CET 2013
On segunda-feira, 28 de outubro de 2013 11:04:14, Graham Labdon wrote:
> Hi
> I am looking into the possibilities offered by Qt to provide my applications
> with a custom style. There appears to be a choice of using style sheets or
> to implement the style by deriving from QProxyStyle. What are the
> advantages of using one method over the other?
> Which is more efficient?
Styles, since they're native code that gets run, as opposed to interpreted
from a parsed stylesheet. Of course, it requires that your write good and
efficient code.
> Which is easier to implement and maintain
Stylesheets, since it's just a a simple CSS-like file or snippet, no new code
to write or maintain.
> Which is more flexible
Styles, since they can change just about anything, and given enough hacks,
everything else.
> If anyone has any advice on which way I should go I would be grateful to
> hear from you
My opinion is "do neither, just use the platform look and feel". This is an
*opinion* -- I don't like applications with custom look and feel, I like them
to integrate with the desktop UI.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131028/0edc24fc/attachment.sig>
More information about the Interest
mailing list