Some help for recreating the Plasma Tool Box in QML

Aaron J. Seigo aseigo at kde.org
Thu Oct 27 11:58:37 UTC 2011


On Thursday, October 27, 2011 13:36:27 Mark wrote:
> flag setWindowFlags(Qt::FramelessWindowHint) on the QDeclarativeView object
> which is removing the decorations, but i can't find the flag to get rid of
> the taskbar entry. I haven't searched for it thoroughly yet, but if someone
> knows that flag...? ;)

from plasma/desktop/shell/panelcontroller.cpp:

    KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager | 
NET::Sticky | NET::KeepAbove);

it also does the following which may be useful for you:

    setAttribute(Qt::WA_DeleteOnClose);
    setFocus(Qt::ActiveWindowFocusReason);

and you may also wish to do this:

        KWindowSystem::setOnAllDesktops(dialog->winId(), true);

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20111027/48da6b09/attachment.sig>


More information about the Plasma-devel mailing list