The default size was very small by default (400x250), this increases it wxFileDialog/wxDirDialog to Qt's hint size.
https://github.com/wxWidgets/wxWidgets/pull/24643
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
IMHO, I think we can do this for all QDialog
descendants by applying something like this
diff --git a/src/qt/window.cpp b/src/qt/window.cpp index 6cbb6a9f3c..c63f989163 100644 --- a/src/qt/window.cpp +++ b/src/qt/window.cpp @@ -442,8 +442,9 @@ bool wxWindowQt::Create( wxWindowQt * parent, wxWindowID id, const wxPoint & pos p = pos; wxSize initialSize = size; - initialSize.SetDefaults( IsTopLevel() ? wxTopLevelWindowBase::GetDefaultSize() - : wxQtGetBestSize( GetHandle() ) ); + initialSize.SetDefaults( IsTopLevel() && !GetHandle()->inherits("QDialog") ? + wxTopLevelWindowBase::GetDefaultSize() : + wxQtGetBestSize( GetHandle() ) ); DoMoveWindow( p.x, p.y, initialSize.GetWidth(), initialSize.GetHeight() );
What do you think ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
What do you think ?
Your idea seems better, and is working as expected with file dialogs.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Should this one be closed and the patch above applied it instead or is/will it be part of some other PR?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Should this one be closed and the patch above applied
Sure.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Closed #24643.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.