Insert QRect values inside qss stylesheet

  • Hi,
    I have a qproperty which relies on a QRect

    Q_PROPERTY(QRect systemRect READ getSystemRect WRITE updateSystemRect)

    Inside the .qss sytlesheet I write

    qproperty-systemRect: -2500 -2500 5000 5000;

    But when my write method is invoked, the QRect is empty.

    I saw that the setProperty method handles the QRect, but I don't know how to set its values inside the qss stylesheet.

    Any hint?

    Thanks in advance,


Log in to reply

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