Try this:
It assumes that if visible region is just one single rect equal to whole bounding rect, then widget is fully visible.Qt Code:
if(visRegn.boundingRect() == pWidget->rect() && visRegn.rects().count() == 1) { qDebug() << "is fully visible"; }To copy to clipboard, switch view to plain text mode
Bookmarks