QRegion QWidget::visibleRegion() const{ return d_func()->clipRect();}
#ifdef Q_WS_X11XSelectInput(QX11Info::display(), winId(), KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask | KeymapStateMask | ButtonMotionMask | PointerMotionMask | EnterWindowMask | LeaveWindowMask | FocusChangeMask | ExposureMask | PropertyChangeMask | StructureNotifyMask | VisibilityChangeMask);#endif
#ifdef Q_WS_X11bool QMyWidget::x11Event(XEvent *event){ if (event->type == VisibilityNotify) m_state = event->xvisibility.state; return QWidget::x11Event(event);}#endif