1

Is there any guide on how to implement a auto hiding window, that collapse to a small piece of widget when it's placed at edge of screen

When mouse is hovering that small widget, it stretches to original widget (this could be done with Qt animation framework, not a problem here)

daisy
  • 22,498
  • 29
  • 129
  • 265

1 Answers1

2

You could check if your cursor and/or widget positions are in a N-pixel border, and then use a signal slot setup.The custom signal could be a timer elapsed event.

Qt - Determine absolute widget and cursor position

http://doc.qt.io/qt-4.8/application-windows.html#window-geometry

Be aware that multiscreen setups may not behave as expected, depending if they fuse your real screens to one, or treat them as seperate ones.

Community
  • 1
  • 1
drahnr
  • 6,782
  • 5
  • 48
  • 75