Background position in pixels

  • Can someone please confirm that in Qt Stylsheets we can use xpos ypos.

    background-position in pixels so we have only one image and use sprites like we do in websites.

    Currently in Qt documentation they have mentioned:


    | bottom
    | left
    | right
    | center

    and not x and y coordinates.

  • I chked the sources and looks like Qt webkit has code to recognize background-position x and y values.
    see: webkit/webcore/css/CSSParser.cpp

    Normal widgets only support alignment ..
    see: gui/text/qcssparser.cpp

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.