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 do detect user enters or leaves a QWindow?
Forum Updated to NodeBB v4.3 + New Features

How do detect user enters or leaves a QWindow?

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

    I am creating an instance of QWindow-derived class, and I am going to show and hide it when user enters or leave the window, like a tooltip does. But unlike QWidget, a QWindow has many limitations, how could I accomplish it?

    我们自己的论坛:http://qtdream.com
    擅长三维角色仿真动画。

    J.HilkJ 1 Reply Last reply
    0
    • jiancaiyangJ jiancaiyang

      I am creating an instance of QWindow-derived class, and I am going to show and hide it when user enters or leave the window, like a tooltip does. But unlike QWidget, a QWindow has many limitations, how could I accomplish it?

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      Hi @jiancaiyang ,
      as far as I know, QWindow does not have a enterEvent like QWidgets have, but theres the focusInEvent it might be enough for your case?


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      4

      • Login

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