[Qt-interest] how I can know the widget is editable?

Denis Dzyubenko denis.dzyubenko at trolltech.com
Fri Mar 20 10:26:04 CET 2009


Hi,

marslee_suc wrote:
> I am facing a big problem :how can I know a widget is editable. I get a pointer that point to  QWidget. I want to know 
> whether the widget is an input widget such I can input some thing by keyboard .

There is no way that will work in 100% cases, but you might try to check 
if the widget works with input methods by checking the attribute 
Qt::WA_InputMethodEnabled - if it does, then it can accept keyboard input.

-- 
Denis Dzyubenko
Software Engineer
Nokia, Qt Software



More information about the Qt-interest-old mailing list