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. Shield the right-click menu on the taskbar

Shield the right-click menu on the taskbar

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 335 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.
  • N Offline
    N Offline
    Nan Feng
    wrote on last edited by
    #1

    The Qt program shields the right-click menu on the taskbar and the preview image when the mouse is moved to the top. How to achieve this? In addition, how to capture the close event of the taskbar right-click menu and the close button of the preview window?

    jsulmJ 1 Reply Last reply
    0
    • N Nan Feng

      The Qt program shields the right-click menu on the taskbar and the preview image when the mouse is moved to the top. How to achieve this? In addition, how to capture the close event of the taskbar right-click menu and the close button of the preview window?

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

      @Nan-Feng said in Shield the right-click menu on the taskbar:

      The Qt program shields the right-click menu on the taskbar and the preview image when the mouse is moved to the top

      What does "shields" mean here? What preview image do you mean? What does "moved to the top" mean exactly (to the top of what?)? Can you please explain better?

      "how to capture the close event of the taskbar right-click menu and the close button of the preview window?" - how do you show the menu? What is this preview window?

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

      1 Reply Last reply
      0
      • N Offline
        N Offline
        Nan Feng
        wrote on last edited by
        #3

        please check the photo.
        Link: https://pan.baidu.com/s/1SVPgSYP2QO4Npna9jre_XA
        Extraction code: 0000

        When the program is running, it is displayed on the taskbar. Right-click and there will be a menu [Close, pin to the taskbar...]
        Mouse over, there will be a thumbnail, move to the upper right corner of the thumbnail, there is a close button,
        How to prohibit right-clicking? And how to block the thumbnail, can you intercept the event of the close button on the thumbnail?

        jsulmJ 1 Reply Last reply
        0
        • N Nan Feng

          please check the photo.
          Link: https://pan.baidu.com/s/1SVPgSYP2QO4Npna9jre_XA
          Extraction code: 0000

          When the program is running, it is displayed on the taskbar. Right-click and there will be a menu [Close, pin to the taskbar...]
          Mouse over, there will be a thumbnail, move to the upper right corner of the thumbnail, there is a close button,
          How to prohibit right-clicking? And how to block the thumbnail, can you intercept the event of the close button on the thumbnail?

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

          @Nan-Feng I'm not sure your requirements can be implemented with Qt, as the taskbar buttons are handled by the operating system.
          https://doc.qt.io/qt-5/qwintaskbarbutton.html

          To capture close event override https://doc.qt.io/qt-5/qwidget.html#closeEvent

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

          1 Reply Last reply
          3

          • Login

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