I have a Qt4.8 QWidget with generated Ui_ file
class QMyWidget: public QWidget
{
Q_OBJECT
public:
Ui_MyGeneratedUi ui;
...
}
It works fine on Windows and Linux, but when I try to
QMyWidget() {
> ui.setupUi(this);
...
}
on MacOS (10.12) my application crashes with stack trace looking like this or this. There seems to be nothing particularly suspicious in UI. Moreover there are many other QWidgets in my application with generated UI and QLineEdit insed which work well on MacOS too.
Mentioned bugs are closed and seem to be amended in Qt5 but I wonder what is the reason of these crashed and if there is any workaround.