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. Key Press and Qt::ToolTip Flag
Forum Updated to NodeBB v4.3 + New Features

Key Press and Qt::ToolTip Flag

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 3.6k 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.
  • V Offline
    V Offline
    vietnorm
    wrote on last edited by
    #1

    Hi,

    I have a window that I want to hide from taskbar. I tried couple of things, but setting the Qt::ToolTip flag is the only one that works well for me, except one thing, it no longer receives keyPressEvent. How do I get it to receve the event?

    Thanks in advance.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      Hi vietnorm,

      on which OS are you working? AFAIK, this is a platformdependant thing.

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vietnorm
        wrote on last edited by
        #3

        Thank you for your reply.

        Linux primarily, but I would like it to be cross-platform, if possible.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vietnorm
          wrote on last edited by
          #4

          Was 'Windows' the correct answer? :)

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vietnorm
            wrote on last edited by
            #5

            Hi,

            In case someone else encounters this problem, you can solve it by
            using this instead of Qt::ToolTip:

            @setWindowFlags ( Qt::Tool | Qt::FramelessWindowHint);@

            Cheers

            1 Reply Last reply
            0
            • S Offline
              S Offline
              sigrid
              wrote on last edited by
              #6

              Alternatively, you can use the approach from this "FAQ":http://developer.qt.nokia.com/faq/answer/how_can_i_create_a_window_that_has_no_taskbar_entry where we create a dummy widget that acts as a parent for a second widget and then pass in the Window flag to the second widget.

              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