[Interest] [OS X] creating a QDialog from a WId?
Thiago Macieira
thiago.macieira at intel.com
Tue Dec 8 17:52:38 CET 2015
On Tuesday 08 December 2015 17:14:46 René J.V. Bertin wrote:
> 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;
> }
Which line crashes and what's the backtrace of the crash?
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list