Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

CSS inheritance in QGraphicsView



  • 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


Log in to reply