[Qt-interest] Style Sheets and background-position

Robin Allen roblovski at gmail.com
Fri Dec 12 22:21:45 CET 2008


Hello,

When using images to style multi-state widgets, it's convenient to be able
to have all the images for the different states in a single bitmap, arranged
in a grid where, say, the rows are Disabled, Normal, Hover and Pressed and
the columns are Focused, Normal and Default.

In regular CSS one can use background-position with pixel values to refer to
a specific region of the image, but in QSS background-position only seems to
recognize 'top', 'left', etc. It would be nice if pixel values were
supported here, in a future Qt maybe. Or if there's a way to achieve that
now which I've overlooked, please let me know.

Regards,

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


More information about the Qt-interest-old mailing list