Hi,<div><br></div><div>Since "some" people seem to blame me a little for asking question in private mails.. I will throw a bunch of questions in the list.</div><div><br></div><div>For starters, my tooltip "endeavors" are really starting to show now. I got the tooltip somewhat working with nice red text in it and a nice red square for the icon. That's all in QML and that's working fine.</div>
<div>The issues i seem to be getting are related to window hints and the dialog itself.</div><div><br></div><div>Just FYI, here is the - very basic and primitive - QML thus far: <a href="http://paste.kde.org/492464/">http://paste.kde.org/492464/</a> not complicated at all. And if you're wondering. </div>
<div>The "ToolTipData" is just the PRIVATE class "ToolTip" exposed to QML through: rootContext()->setContextProperty("ToolTipData", this); (this = class ToolTip)</div>ScreenGeometry is: rootContext()->setContextProperty("ScreenGeometry", QApplication::desktop()->screenGeometry());
<div><br></div><div>Here are the issues i have so far:</div><div>1. The current tooltip classes send a pixmap as an icon (ToolTipManager -> ToolTipContent -> ToolTip). That's fine, but how do i send the pixmap from C++ to QML and actually use it?</div>
<div>2. Somehow the tooltip itself shows itself just under the middle of the screen when i open it up for the first time. If i hover over another item for an updated tooltip the position corrects itself. I don't know why this is happening. The x position seems to be fine, the y position seems to be wrong.</div>
<div>3. The tooltip seems to have a minimal width + height of around 100 pixels. Where is that minimal limit set and how can i get rid of it?</div><div>4. Which flags do i need to have for a tooltip? If i put Qt.ToolTip in it i get double shadows... Right now i have windowFlags: Qt.X11BypassWindowManagerHint in QML (as you can see). No flags are set in C++.</div>
<div><br></div><div>I'm intentionally not posting the C++ coding yet :) It's not of much use for the above questions anyway.</div><div>Thus far it's going to look like a missive code cleanup in the C++ ToolTip coding.</div>
<div><br></div><div>My tooltip.cpp is only about 240 lines and half of it is commented code! Though there is still the big issue of window previews..</div><div><br></div><div>Either way, i hope some folks can answer the above questions. </div>
<div>Also, all your responses will help improve the docs: <a href="http://techbase.kde.org/Development/Tutorials/Plasma/QML/API">http://techbase.kde.org/Development/Tutorials/Plasma/QML/API</a> since i will update that one with it as well.</div>
<div>Talking about docs.. How do you add a proper code snippet in the wiki? I tried doing that <a href="http://techbase.kde.org/Development/Tutorials/Plasma/QML/API#Dialog">http://techbase.kde.org/Development/Tutorials/Plasma/QML/API#Dialog</a> but it looks a bit ugly.</div>
<div><br></div><div>Cheers,</div><div>Mark</div>