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

QProxyStyle subclassing not working



  • I need to skip the QProxyStyle::drawPrimitive in a QTableView, so I implemented my own drawPrimitive in a class that eredits QProxyStyle, and implemented this function to do nothing. Then I use setStyle of the QTableView. Now I can see in debug that any time the QTableView is designed the application calls my drawPrimitive that does nothing, but still the gui calls QProxyStyle::drawPrimitive! Why?


  • Moderators

    @pedrito said:

    Now I can see in debug that any time the QTableView is designed the application calls my drawPrimitive that does nothing, but still the gui calls QProxyStyle::drawPrimitive! Why?

    How can you see that it is called?!
    And why can't you see on this way from where it is called?!


Log in to reply