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. How to capture double click on title bar
QtWS25 Last Chance

How to capture double click on title bar

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 291 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.
  • D Offline
    D Offline
    deisik
    wrote on 3 Aug 2023, 16:55 last edited by deisik 8 Mar 2023, 17:37
    #1

    For example, I want to minimize (hide) a window when I double click on its title bar (way faster than clicking on the Minimize button)

    I can do this in Windows, but how can I do the same in Linux/X11?

    I tried reimplementing QWidget::nativeEvent(), but I only receive XCB_CLIENT_MESSAGE with the xcb_generic_event_t event when I click on the title bar (no XCB_BUTTON_PRESS or whatever you would expect on mouse click)

    I feel like I got stuck

    M 1 Reply Last reply 3 Aug 2023, 17:30
    0
    • D deisik
      3 Aug 2023, 16:55

      For example, I want to minimize (hide) a window when I double click on its title bar (way faster than clicking on the Minimize button)

      I can do this in Windows, but how can I do the same in Linux/X11?

      I tried reimplementing QWidget::nativeEvent(), but I only receive XCB_CLIENT_MESSAGE with the xcb_generic_event_t event when I click on the title bar (no XCB_BUTTON_PRESS or whatever you would expect on mouse click)

      I feel like I got stuck

      M Offline
      M Offline
      mpergand
      wrote on 3 Aug 2023, 17:30 last edited by mpergand 8 Mar 2023, 17:31
      #2

      @deisik
      Hi,
      Mainly, it's OS dependent (on Linux linked to the Window Manager)
      Personally, on mac, I have choosen the zoom option instead of minimize and I would not really appreciate some apps to pass over my choice :)

      1 Reply Last reply
      1

      1/2

      3 Aug 2023, 16:55

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved