Set AA_DontCreateNativeWidgetSiblings when using QtWebEngine
AbandonedPublic

Authored by wbauer on Dec 1 2018, 9:20 AM.

Details

Reviewers
mqualmann
Summary

This gets rid of the runtime warning QQuickWidget cannot be used as a native child widget. Consider setting Qt::AA_DontCreateNativeWidgetSiblings when clicking on a link in the Welcome page that opens a new browser window, and also fixes the Welcome page getting black in that case.

Test Plan

Build digikam with QtWebEngine.

Open the Welcome page, click on "documentation" or "digiKam homepage" in "About".

Before, the runtime warning was displayed in the shell and the Welcome page became completely black as soon as the new window opened.

Now neither of both happens.

Diff Detail

Repository
R482 digiKam
Lint
Lint Skipped
Unit
Unit Tests Skipped
wbauer requested review of this revision.Dec 1 2018, 9:20 AM
wbauer created this revision.
wbauer edited the test plan for this revision. (Show Details)

Did you test this king of patch with the geolocation view, in GoogleMaps mode which use also QWebEngine ?

Gilles Caulier

Note : you patch the digiKam main(). Showfoto main() need also to be patched as it can show the Geolocation view in GoogleMaps mode.

Anyway, if GoogleMaps view work fine with this patch, I don't have any objection to apply it to git/master (with Showfoto patch included of course).

Gilles Caulier

wbauer added a comment.EditedDec 1 2018, 11:07 AM

Did you test this king of patch with the geolocation view, in GoogleMaps mode which use also QWebEngine ?

Yes, that still works fine, but it wasn't affected before either.

Note : you patch the digiKam main(). Showfoto main() need also to be patched as it can show the Geolocation view in GoogleMaps mode.

Showfoto doesn't show the Welcome page (or does it?), and so the problem this is supposed to fix doesn't occur there (AFAICT).

I just tried to open Help->Online Documentation (which opens a browser window too) while having the GeoLocation view open. No problem whatsoever (with or without the patch).

mqualmann accepted this revision.Dec 1 2018, 11:35 AM

I can reproduce the problem, although I always use QWebEngine, I had never noticed it before.
The patch works fine, also with the geolocation.

Maik

This revision is now accepted and ready to land.Dec 1 2018, 11:35 AM

No, welcome page view is not present in Showfoto. Only the geolocation view. So the patch must be applied too to Showfoto::main().

Please update the patch and apply it to git/master.

Gilles Caulier

mqualmann requested changes to this revision.Dec 1 2018, 1:23 PM

In Showfoto the problem may not occur well, but I will try to solve the problem in another way.

Maik

This revision now requires changes to proceed.Dec 1 2018, 1:23 PM
wbauer updated this revision to Diff 46621.Dec 1 2018, 2:55 PM

Apply the same change to showfoto as well.

wbauer added a comment.Dec 1 2018, 3:20 PM

No, welcome page view is not present in Showfoto. Only the geolocation view. So the patch must be applied too to Showfoto::main().

Yes, but the geolocation view doesn't have that problem, only the welcome page view is affected for some reason.
But ok, I updated the patch to also modify showfoto.

@mqualmann: If you do find a different/better solution, that's fine with me of course.
I'll just leave this differential open for now.

Close with REVIEW: D17276 was not successful.

remote: https://commits.kde.org/digikam/60721615dd9af2b81dacce06adaa7e31d56eee32
remote: ERROR - Communication problem with Reviewboard. Please contact the KDE sysadmins.
remote: INFO - Please report the following:
remote: INFO - Request URL: https://git.reviewboard.kde.org/api/review-requests/17276/
remote: INFO - Status code: 404

Maik

wbauer abandoned this revision.Dec 1 2018, 3:47 PM

Close with REVIEW: D17276 was not successful.

remote: https://commits.kde.org/digikam/60721615dd9af2b81dacce06adaa7e31d56eee32
remote: ERROR - Communication problem with Reviewboard. Please contact the KDE sysadmins.
remote: INFO - Please report the following:
remote: INFO - Request URL: https://git.reviewboard.kde.org/api/review-requests/17276/
remote: INFO - Status code: 404

Maik

"REVIEW: D17276" is for closing a review on reviewboard, with phabricator you need to use something like:

Differential Revision: https://phabricator.kde.org/D17276

I suppose I can abandon this now, then.

Ok, thank you, I confused the review board and phabricator.

Maik