https://bugs.kde.org/show_bug.cgi?id=404833

--- Comment #22 from Kai Uwe Broulik <k...@privat.broulik.de> ---
> Not embedding random dialogs but either way *I* didn't bring up the argument 
> that you're supposedly not allowed to mess with native UIs. I just pointed 
> out why that argument is moot here.

It's not that you're not allowed to, it can. not. be. done. If Qt were
wxwidgets which uses native controls on all platforms, maybe, but this is not
the case with Qt.

> And that's a pity because I'm not convinced that it can not be done with the 
> KDE file dialog. That may be the sole exception where it *can* be done 
> because it's built entirely out of Qt components. 

Look at xdg-desktop-portal, it uses a QDialog, slaps a KFileWidget into it,
wires up the QDialogButtonBox to interact with it, and done. 10 lines of code.

> My latest PoC hack is stable,

As you said, it's a hack, and we have supported usecases to add a file chooser
to a custom wizard dialog, namely the one I outlined above. Since you can't do
that stuff in a platform-independent way, you might as well do it properly and
use the correct APIs directly rather than relying on some magic properties set
by some plugin.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to