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. Command-click, does not activate window unless there's a popup/combobox/dropdown menu
Forum Updated to NodeBB v4.3 + New Features

Command-click, does not activate window unless there's a popup/combobox/dropdown menu

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.4k 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.
  • D Offline
    D Offline
    DerekDomino
    wrote on last edited by
    #1

    Hello,

    I'm trying to have an application that does not activate when clicking on its window with the Apple-Command key pressed so that the other application does not loose focus.

    It works well:

    • can drag/move the window without activating it
    • can close the application without activating it
    • can click on QPushButton's (or QToolButton's ...)

    but

    • cannot click on the arrow of a QToolButton to display a popup menu without activating the application :-(

    Do you know how to avoid activating the application when Command-clicking a Qt button's popup menu?

    For example, let's say we have Chrome running and another application on top that is activated (e.g.: Finder): then it is possible to keep Finder activated while interacting with Chrome and the Command-Click (changing tab, right clicking on a page or link, going back&forth in the history with a long click on the prev/next arrows ...).

    Thanks

    Configuration: Qt 4.8.1 & Mac OS X 10.7

    [[Added some formating, Tobias]]

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DerekDomino
      wrote on last edited by
      #2

      I've tried with Qt 5.0.0, the problem still persists but is different: when Command-clicking on a QComboBox of a Qt application window which is not activated, the application does indeed not activate but now the dropdown menu does not show up and the Qcombobox 'button' keeps in the 'Pressed' state even when the mouse button is released.

      I don't where/how the menu is drawn in Qt's source code with Cocoa, but I could give a try to modifiy Qt's source. Do you know where it is located?

      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