[Interest] [OS X] creating a QDialog from a WId?

René J.V. Bertin rjvbertin at gmail.com
Tue Dec 8 17:14:46 CET 2015


Hello,

I'm experiencing a crash in setMainWindow() with the code below (from KF5-kwidgetsaddons).
Is this something that is allowed on OS X, and supposed to work?

static QDialog *createWIdDialog(WId parent_id)
{
    QWidget *parent = QWidget::find(parent_id);
    QDialog *dialog = new QDialog(parent, Qt::Dialog);
    if (!parent && parent_id) {
        setMainWindow(dialog, parent_id);
    }
    return dialog;
}

Thanks,
R.



More information about the Interest mailing list