You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I try to create a Dialog which has an existant active parent Window, the placement of the Dialog on show (or exec_) is dependant upon the binding in question.
I will get the second dialog at the center of the parent window.
For python27 and PySide I get the second window wedged above the top left corner.
if I use the setup_ui function as in baseinstance1.py, I will get the second dialog in the middle of the screen regardless of the binding. This I can manipulate by overridiing showEvent and calling move.
Also that setup_ui does not make the child window be always on top of the parent window.
However, setup_ui and the override seem like just unnecessary inconvenient boiler plate in otherwise somewhat clean Qt.py and should probably be a part of the shim library. Am I wrong to expect consistent behaviour out of the box?
The text was updated successfully, but these errors were encountered:
I'd say you're in your right to expect consistent behavior here, as Qt.py is meant to do exactly that, not only for functional consistency but visual too.
This seems like a difference in the bindings themselves, and if it's possible to provide consistency out of the box then I think we should.
Are you able to reproduce the problem without a .ui file? That would help narrow down whether it's the UI loader or not.
Whenever I try to create a Dialog which has an existant active parent Window, the placement of the Dialog on show (or exec_) is dependant upon the binding in question.
For example if have:
with
untitled.ui
as:and I do
I will get the second dialog at the top-left corner.
and if I do
I will get the second dialog at the center of the parent window.
For python27 and PySide I get the second window wedged above the top left corner.
if I use the
setup_ui
function as in baseinstance1.py, I will get the second dialog in the middle of the screen regardless of the binding. This I can manipulate by overridiingshowEvent
and callingmove
.Also that
setup_ui
does not make the child window be always on top of the parent window.However,
setup_ui
and the override seem like just unnecessary inconvenient boiler plate in otherwise somewhat cleanQt.py
and should probably be a part of the shim library. Am I wrong to expect consistent behaviour out of the box?The text was updated successfully, but these errors were encountered: