threedeyes / qthaikuplugins

Qt5 plugins for haiku platform
GNU General Public License v3.0
13 stars 4 forks source link

Don't create a BApplication if one already exists #27

Open jmairboeck opened 1 year ago

jmairboeck commented 1 year ago

This came up when testing my new port of OpenCASCADE (no pull request created yet) with Xlibe.

When running some tests using Qt5 based tools, they crash when trying to create the Qt5 BApplication because Xlibe already created one before.

threedeyes commented 1 year ago

It can't be solved. An application cannot have more than one instance of BApplication. Either xlibe or Qt - just one of them.

waddlesplash commented 1 year ago

Xlibe can run even if a BApplication already exists. SDL1.2 can as well. SDL2 can't yet, but there's a patch to make this possible. Would it be possible to do the same in Qt?