Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Insert QRect values inside qss stylesheet
Forum Updated to NodeBB v4.3 + New Features

Insert QRect values inside qss stylesheet

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 495 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fabval
    wrote on last edited by
    #1

    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,

    Fabrizio

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved