PDA

View Full Version : QLineEdit is not Editable in a widget with X11BypassWindowManagerHint flag



alizadeh91
10th April 2012, 15:12
Hi ...
I've a widget and use a QlineEdit in it. I've set widget's flag 'X11BypassWindowManagerHint'. The problem is that when widget is shown the QlineEdit is not editable. When i remove the X11BypassWindowManagerHint flag it works fine and qlineeidt is editable. whats the problem?

ChrisW67
11th April 2012, 04:31
From the Qt::X11BypassWindowManagerHint entry (highlighting mine):

Bypass the window manager completely. This results in a borderless window that is not managed at all (i.e., no keyboard input unless you call QWidget::activateWindow() manually). Seems like an obvious candidate.

alizadeh91
11th April 2012, 10:09
Add to windowflags PopUp:
for example:
setWindowFlags(Qt::X11BypassWindowManagerHint | Qt::Popup);