[Interest] adding widgets to native file dialogs?
nyall.dawson at gmail.com
Fri Mar 1 01:56:41 CET 2019
On Wed, 27 Feb 2019 at 20:27, René J.V. Bertin <rjvbertin at gmail.com> wrote:
> What options are there to add widgets (e.g. a preview widget) to QFileDialog instances or descendants, which will work with "native" dialogs?
> I'm looking into an issue with Scribus where this is achieved by embedding the entire QFileDialog instance into its parent, i.e. by setting it to be a Qt::Widget. This works fine with non-native dialogs, but with the native dialogs I've tested it with (KDE & Mac) the dialog still opens as an additional window; on Mac it will even appear behind the window in which it's supposed to be embedded (and which retains focus so the dialog cannot be used).
> That issue appears to be due to a design oversight (?) in Qt, where the user and the application interact with 2 distinct dialog windows.
> I've looked around for answers in the usual places; there are quite a few but they all use non-native dialogs...
On this same note... is there any workaround which allows for setting
of sidebar URLs with native dialogs? This is definitely supported on
some platform's native dialogs, e.g. standard Windows file dialogs can
be created with custom folder shortcuts in the sidebar.
More information about the Interest