Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    CSS inheritance in QGraphicsView

    General and Desktop
    1
    1
    1655
    Loading More Posts
    • 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.
    • J
      Jake007 last edited by

      Hi!

      Is it possible to inherit css code from QGraphicsScene/QGraphicsView, to child items, which are QGraphicsTextItems in my case?
      And if it's, how?

      Example:
      If I set h3{ color: #F00}; in QGraphicsScene, every Text item which has html h3 tags would be red.

      Regrads,
      Jake


      Code is poetry

      1 Reply Last reply Reply Quote 0
      • First post
        Last post