enaml icon indicating copy to clipboard operation
enaml copied to clipboard

Dialog widget doesn't have a layout initialized

Open vladwing opened this issue 9 years ago • 1 comments

There is an exception when trying to use a Dialog widget in ENAML. The problem seems to be self.layout() in QWindowBase.setCentralWidget() returns None.

While digging deeper, I discovered the problem in QWindowDialog inheriting from QDialog and QWindowBase. Somehow QWindowBase.__init__ doesn't get called by QWindowDialog.__init__'s super call.

Example code Using latest Enaml with PySide, on Linux

vladwing avatar Dec 24 '14 15:12 vladwing

Duplicate of #108

sccolbert avatar Dec 24 '14 16:12 sccolbert

Work on supporting for PySide2/6 have fixed this issue.

MatthieuDartiailh avatar Oct 06 '22 19:10 MatthieuDartiailh