[Development] Moving QDesktopServices from Gui to Core?
Thiago Macieira
thiago.macieira at intel.com
Tue May 7 20:02:26 CEST 2024
On Tuesday 7 May 2024 10:50:09 GMT-7 Lars Knoll via Development wrote:
> There could also be use cases where you have split your app into two parts,
> a UI running in one process and a backend running in another one. The
> backend doesn’t link against any GUI libraries, but might need to launch an
> OAuth flow in response to something that’s been triggered by the UI. And
> there could be many reasons why you’d want a process separation, security
> being one of them.
>
> So I do believe there are valid use cases for opening a browser window from
> a process that does not link against a GUI library. Given that the
> implementation doesn’t require anything UI specific neither I don’t see why
> we shouldn’t have it in Qt Core.
I agree with the conclusion. But your premise is talking about it being a
tightly-coupled UI and non-UI process components. So the non-UI component
doesn't want to use QCoreDesktopServices::openUrl in the first place: it wants
to communicate with its UI component through whichever communication mechanism
it has established.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Principal Engineer - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20240507/5626b60a/attachment-0001.bin>
More information about the Development
mailing list