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. i want to call an auto call event which gets calls automatically after any control or widget get changed
Qt 6.11 is out! See what's new in the release blog

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 641 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.
  • Vijay LamkaneV Offline
    Vijay LamkaneV Offline
    Vijay Lamkane
    wrote on last edited by Vijay Lamkane
    #1

    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

    raven-worxR 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Vijay LamkaneV Vijay Lamkane

        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

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        @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)

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        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