Hi, all. I am working on a monitor for the "rdesktop" application. It will have a tiny window, horizontally centered at the bottom of the screen, with a few buttons on it, and, while "rdesktop" is running, I have planned for it to hide, moving partially out of the screen, leaving just 1 pixel line, just enough to receive a mouse "enterEvent" and then rise to its normal position.
But I could not move the widget out of the screen. I'm using this: QRect r = rect(); QRect d = qApp->desktop()->availableGeometry(-1); setGeometry( ( d.width() - r.width() ) / 2, d.height() - 1 , r.width(), r.height() ); To get it to the initial position, it works perfectly with this: QRect r = rect(); QRect d = qApp->desktop()->availableGeometry(-1); setGeometry( ( d.width() - r.width() ) / 2, d.height() - r.height(), r.width(), r.height() ); Am I missing something? I'm using Qt 5.9.6 in Linux (Gentoo) OS. Thanks! Francisco
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest