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. Mouseover vs Mouseclick
Forum Updated to NodeBB v4.3 + New Features

Mouseover vs Mouseclick

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 966 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.
  • P Offline
    P Offline
    poortipant
    wrote on last edited by
    #1

    Hi,

    I have developed a Qt application in Qt5.9 that I embed inside an Adobe Illustrator plugin. This plugin is a floating panel.

    When the focus is not on the plugin panel, and I move the mouse over the panel, my Qt button css hover style plays out (which means Qt receives the mouse hover). But if I click it, then click event doesn't execute. It takes 2 clicks for me to fire the event ( 1st click gets the panel into focus, 2nd click fires the event).

    Why is this even happening that Qt receives one event and not the other?
    I want to avoid this. Either the mouse hover shouldn't work when the window is out of focus, or I should be able to click the button at first go.

    Any ideas?

    jsulmJ 1 Reply Last reply
    0
    • P poortipant

      Hi,

      I have developed a Qt application in Qt5.9 that I embed inside an Adobe Illustrator plugin. This plugin is a floating panel.

      When the focus is not on the plugin panel, and I move the mouse over the panel, my Qt button css hover style plays out (which means Qt receives the mouse hover). But if I click it, then click event doesn't execute. It takes 2 clicks for me to fire the event ( 1st click gets the panel into focus, 2nd click fires the event).

      Why is this even happening that Qt receives one event and not the other?
      I want to avoid this. Either the mouse hover shouldn't work when the window is out of focus, or I should be able to click the button at first go.

      Any ideas?

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

      @poortipant said in Mouseover vs Mouseclick:

      window is out of focus

      Do you mean the whole Adobe Illustrator window is not the active one? If so then you have to make it active first in any case. That would explain the behaviour, but I'm not sure what exactly you mean.

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

      P 1 Reply Last reply
      0
      • jsulmJ jsulm

        @poortipant said in Mouseover vs Mouseclick:

        window is out of focus

        Do you mean the whole Adobe Illustrator window is not the active one? If so then you have to make it active first in any case. That would explain the behaviour, but I'm not sure what exactly you mean.

        P Offline
        P Offline
        poortipant
        wrote on last edited by
        #3

        @jsulm
        No, the whole scenario is within Illustrator.
        For eg, if I open a swatch and then move the mouse over my panel as seen in the image below.

        0_1499079419138_Mouseover_issue.png

        Here, the focus is in the Swatch panel. But, when I move the mouse over the button, it gets the event.

        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