[QScintilla] Fix for autocomplete popup window

Mikhail mezomish at gmail.com
Thu Oct 15 02:19:58 BST 2009


Hi there,

As you probably know there is an undesired behavior of auto-complete 
popup window on Linux when using GNOME: it appears for a moment and then 
disappears immediately. I've investigated this behavior with several 
distros/DEs with the last version of QScintilla:

Debian Lenny (Qt 4.4, KDE 3.5, GNOME 2.22):
* works in KDE with KWin, doesn't work in KDE with Compiz
* doesn't work in GNOME with either Metacity or Compiz

Ubuntu 9.04 (Qt 4.5, KDE 4.2, GNOME 2.26):
* works in KDE with KWin, didn't try in KDE with Compiz
* doesn't work in GNOME with either Metacity or Compiz

After applying the following patch:

--- Qt4/SciClasses.cpp    (original)
+++ Qt4/SciClasses.cpp    (patched)
@@ -128,7 +128,7 @@
 SciListBox::SciListBox(QWidget *parent, ListBoxQt *lbx_)
     : QListWidget(parent), lbx(lbx_)
 {
-    setWindowFlags(Qt::Tool|Qt::FramelessWindowHint);
+    setWindowFlags(Qt::ToolTip|Qt::WindowStaysOnTopHint);
     setAttribute(Qt::WA_StaticContents);
 
     setFocusProxy(parent);

it works perfectly in all listed distros/DEs, as well as in Windows 
(tried WinXP).


More information about the QScintilla mailing list