This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Map transparency

Tags: None
(comma "," separated)
adabrowski
Registered Member
Posts
14
Karma
0

Map transparency

Mon Apr 14, 2014 6:13 am
Hi,
is there a way to make MarbleWidget transparent (i.e. partially showing what's under it?).
User avatar
tackat
KDE Developer
Posts
131
Karma
0
OS

Re: Map transparency  Topic is solved

Sat Apr 19, 2014 8:18 pm
That was possible at one point some years ago (IIRC by setting the Qt::WA_NoSystemBackground Attribute). But so far during the last seven years of Marble development nobody has really used or requested this feature. Therefore I'm I'm afraid this feature had been removed to keep the code simple and performant.
adabrowski
Registered Member
Posts
14
Karma
0

Re: Map transparency

Wed Apr 23, 2014 11:15 am
I might be implementing transparency for MarbleWidget - do you have any tips on how to approach it?
I can see that (in TextureLayer) Marble is using QRgb format for QImage and a QPainter with no set opacity. Should it work when I modify these aspects, or is there something else I should be aware of?

Last edited by adabrowski on Wed Apr 23, 2014 11:56 am, edited 1 time in total.
User avatar
tackat
KDE Developer
Posts
131
Karma
0
OS

Re: Map transparency

Wed Apr 23, 2014 11:53 am
Check for the places where the attribute above is mentioned. :)


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]