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. Connecting two QWidget with QMouseEvents
Forum Updated to NodeBB v4.3 + New Features

Connecting two QWidget with QMouseEvents

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 243 Views
  • 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.
  • W Offline
    W Offline
    w.tkm
    wrote on last edited by
    #1

    I want to connect two QWidget with QMouseEvents.
    "Widget B" is underneath "Widget A", and no mouse event occurs.
    I want the mouse events that I did in "Widget A" to behave the same way in "Widget B".
    Is there any way to do this?

    jsulmJ 1 Reply Last reply
    0
    • W w.tkm

      I want to connect two QWidget with QMouseEvents.
      "Widget B" is underneath "Widget A", and no mouse event occurs.
      I want the mouse events that I did in "Widget A" to behave the same way in "Widget B".
      Is there any way to do this?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @w-tkm You can send events you get in WidgetA to WidgetB, see https://doc.qt.io/qt-5/eventsandfilters.html#sending-events

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      W 1 Reply Last reply
      1
      • jsulmJ jsulm

        @w-tkm You can send events you get in WidgetA to WidgetB, see https://doc.qt.io/qt-5/eventsandfilters.html#sending-events

        W Offline
        W Offline
        w.tkm
        wrote on last edited by
        #3

        @jsulm
        Thanks, I can do this!

        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