Remove Qt::WA_StaticContents property as it has several Qt bugs

* In particular, the widget gets added to a 'staticWidgets' list in a
  widget backing store, but if the window is floating then it's never
  removed from the list and causes a crash shortly after the floating
  window is closed.
This commit is contained in:
Baldur Karlsson
2018-03-15 13:02:39 +00:00
parent 5076b9c37f
commit 497575b687
@@ -57,7 +57,7 @@ ScintillaEditBase::ScintillaEditBase(QWidget *parent)
setAutoFillBackground(false);
setFrameStyle(QFrame::NoFrame);
setFocusPolicy(Qt::StrongFocus);
setAttribute(Qt::WA_StaticContents);
//setAttribute(Qt::WA_StaticContents);
viewport()->setAutoFillBackground(false);
setAttribute(Qt::WA_KeyCompression);
setAttribute(Qt::WA_InputMethodEnabled);