[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Where to start for making an alpha blended window thingy
From:       Thomas =?iso-8859-1?q?L=FCbking?= <thomas.luebking () web ! de>
Date:       2009-05-14 12:54:07
Message-ID: 200905141454.08086.thomas.luebking () web ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Am Thursday 14 May 2009 schrieb Harald Hvaal:

> Do I need to write graphics routines through kwin plugin framework? Is
if you want an effect on desktops/windows (like the cube switch etc.) that's 
likely the best location

> there a flag in Qt that I can use to get an alpha blended backgroudn for a
> qmainwindow? 
Qt 4.5 (only on window type widgets QWidget::isWindow())
QWidget::setAttribute(Qt::WA_TranslucentBackground)
this will however (obviously) only work on composited desktops

> Maybe plasma has something for this? Is it even possible?
if you want whatever you want on the desktop layer (i.e. below all normal 
windows), you can make a plasmoid (QGraphicsViewItem) and just use alpha 
blending

Thomas



[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" \
content="1" /><style type="text/css">p, li { white-space: pre-wrap; \
}</style></head><body style=" font-family:'Segoe'; font-size:10pt; font-weight:400; \
font-style:normal;">Am Thursday 14 May 2009 schrieb Harald Hvaal:<br> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>&gt; Do I need to write graphics routines through kwin \
plugin framework? Is<br> if you want an effect on desktops/windows (like the cube \
switch etc.) that's likely the best location<br> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>&gt; there a flag in \
Qt that I can use to get an alpha blended backgroudn for a<br> &gt; qmainwindow? <br>
Qt 4.5 (only on window type widgets QWidget::isWindow())<br>
QWidget::setAttribute(Qt::WA_TranslucentBackground)<br>
this will however (obviously) only work on composited desktops<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>&gt; Maybe plasma has something for this? Is it even \
possible?<br> if you want whatever you want on the desktop layer (i.e. below all \
normal windows), you can make a plasmoid (QGraphicsViewItem) and just use alpha \
blending<br> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>Thomas<br> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p></body></html>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic