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

i want to call an auto call event which gets calls automatically after any control or widget get changed



  • Here i am using QGraphicsview control to add line .
    line is added using QGraphicsLine through mouse move event, and press event,
    but i want to do operation after any image is inserted into view contrl.
    in Windows Visual Studio System paint event is called every time whenever any control has been changed


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Since you are inserting the image yourself, why not start something from the function where you add the image to the QGraphicsView ?


  • Moderators

    @Vijay-Lamkane
    for a system (Qt-wise) wide notification you can create your own custom event and post it to the QApplication.
    Then any other object/widget can read these events (by installing an event filter on the QApplication instance)


Log in to reply