Re: [Interest] Qml MessageDialog not centered over window

2017-09-25 Thread Murphy, Sean
> Aha, it happens when using a QApplication; the MessageDialog is actually a > QMessageBox in that case. I can get the same result with the test qml like > this: > > qml -apptype widget messagedialog.qml > > (that makes the qml runtime use a QApplication instead of QGuiApplication) > and maybe w

Re: [Interest] Qml MessageDialog not centered over window

2017-09-25 Thread Shawn Rutledge
> On 25 Sep 2017, at 13:17, Murphy, Sean wrote: > > And in my real main.cpp I have > QApplication app(argc, argv); > QQmlEngine engine; > QQmlComponent component(&engine, QUrl("qrc:/qml/dashboard.qml")); > component.create(); > Whereas the project that was generated by Creator when I was tes

Re: [Interest] Qml MessageDialog not centered over window

2017-09-25 Thread Murphy, Sean
> Yes, it should be automatically transient for its parent. For me it works on > Linux and macOS. So I wonder if we have a bug about this transient- > parenting in general on Windows. Have you tried any older Qt versions? Well, the example code you sent me worked correctly on the same version

Re: [Interest] Qml MessageDialog not centered over window

2017-09-24 Thread Shawn Rutledge
> On 24 Sep 2017, at 02:00, Murphy, Sean wrote: > The documentation states that " A MessageDialog window is automatically > transient for its parent window. So whether you declare the dialog inside an > Item or inside a Window, the dialog will appear centered over the window > containing the i

[Interest] Qml MessageDialog not centered over window

2017-09-23 Thread Murphy, Sean
I'm not sure if this is a bug, or if I'm doing something wrong, but I'm trying to display a Qml dialog when an error occurs and it's coming up centered on my monitor, not centered over the application. Relevant code: Window { MessageDialog { id: errorDialog objectName: "error