<div class="gmail_quote">On Tue, May 29, 2012 at 1:59 PM, Marco Martin <span dir="ltr"><<a href="mailto:notmart@gmail.com" target="_blank">notmart@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tuesday 29 May 2012, Mark wrote:<br>
<br>
> > can import an object into the QML that gives access to requesting window<br>
> > previews at a certain place in the tooltip (e.g. a new QML Item called<br>
> > WindowPreview that is actually a C++ class which handles all the<br>
> > previewing goodies; the QML would just create one or more of these<br>
> > WindowPreview objects<br>
> > and ensure they are placed correctly).<br>
><br>
> Ahh oke, i get it.<br>
> For the moment i can even try to use a QGraphicsProxyWidget and just send<br>
> WindowPreview to QML. It actually seems fairly easy to do as described<br>
> here:<br>
> <a href="http://qt-project.org/doc/qt-4.8/declarative-cppextensions-qwidgets-qwidget" target="_blank">http://qt-project.org/doc/qt-4.8/declarative-cppextensions-qwidgets-qwidget</a><br>
</div>> s-cpp.html or<br>
<div class="im">> if it doesn't work i can always put a big red squared stub in it as<br>
> placeholder ^_-<br>
<br>
</div>probably doesn't work since when windowpreview is a proxywidget doesn't have a<br>
read window id anymore: the window preview mechanism works by setting an Atom<br>
on the actual X11 window that asks for a preview of a particular window to be<br>
drawn at cerain coordinates by the compositor.<br></blockquote><div><br></div><div>Then we follow the approach from this <a href="http://get.qt.nokia.com/training/QtQuickforCppDevelopers/slides/qml-cpp-integration.pdf">http://get.qt.nokia.com/training/QtQuickforCppDevelopers/slides/qml-cpp-integration.pdf</a>. Custom painting on top of a QML item. That should certainly be possible since you just make the WindowPreview in C++ and let it paint on a QML item. Perhaps nasty but that probably works. </div>
<div><br></div><div>I could be a bit naive, but i don't really see an issue on getting the preview to QML. Perhaps i still need to hit a big giant wall that stops me. ^_-</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
the nearest thing to what you need is the old windowstrip plasmoid that lives<br>
in plasma-mobile repository<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div>Will take a look at that one. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
<br>
--<br>
Marco Martin<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
</div></div></blockquote></div><br>