Unsolved FileDialog need to have visual parent
-
Because of saving unneeded FileDialog, I need to use a singleton QtObject, like that:
QtObject { property FileDialog modelDialog: FileDialog { ... } }
However when I use modelDialog.open( ), it is not actually opened, but constructed.
When I put the code insideItem
, it's okay. Could anyone tell me the reason? -
Hi @jiancaiyang
The reason is probably that the C++ class has a QWidget *parent. By default, it then opens in the center of that widget. The parent might be a nullptr, though.
-Michael.
-
@m.sue Is it a bug, or the situation undocumented?