[Qt-interest] QWidget::setDisabled()

Denis Akhmetzyanov dakhmetzyanov at smartlabs.tv
Fri Jul 30 11:25:11 CEST 2010


Hi,
You could create helper widget "grabber" and call for it:
void QWidget::grabKeyboard()
http://doc.qt.nokia.com/4.6/qwidget.html#grabKeyboard
void QWidget::grabMouse() http://doc.qt.nokia.com/4.6/qwidget.html#grabMouse
<http://doc.qt.nokia.com/4.6/qwidget.html#grabMouse>Then other widgets get
no keyboard or mouse events at all until QWidget::releaseKeyboard() and
QWidget::releaseMouse() are called.


2010/7/29 Josh <jnfo-c at grauman.com>

> Hello,
>
> Hopefully question has a simple answer. I would like to disable my top
> level widget, but I don't want all the widgets to be drawn differently. I
> just want to block user input. Is there an easy way to do this? Thanks.
>
> Josh
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



-- 
Best regards,
Denis Akhmetzyanov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100730/e2cbee46/attachment.html 


More information about the Qt-interest-old mailing list