Results 1 to 3 of 3

Thread: QLineEdit is not Editable in a widget with X11BypassWindowManagerHint flag

  1. #1
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default QLineEdit is not Editable in a widget with X11BypassWindowManagerHint flag

    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?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QLineEdit is not Editable in a widget with X11BypassWindowManagerHint flag

    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.

  3. #3
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: QLineEdit is not Editable in a widget with X11BypassWindowManagerHint flag

    Add to windowflags PopUp:
    for example:
    setWindowFlags(Qt::X11BypassWindowManagerHint | Qt::Popup);

Similar Threads

  1. Replies: 2
    Last Post: 20th July 2010, 15:35
  2. Qt::X11BypassWindowManagerHint
    By krynux in forum Qt Programming
    Replies: 0
    Last Post: 28th June 2010, 11:35
  3. Qt::X11BypassWindowManagerHint functionality on Windows
    By asterion in forum Qt Programming
    Replies: 1
    Last Post: 13th March 2010, 23:44
  4. Replies: 1
    Last Post: 14th May 2009, 08:57
  5. make each row of table widget not editable??
    By darpan in forum Qt Programming
    Replies: 4
    Last Post: 16th October 2006, 10:22

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.