<div class="gmail_quote">On Mon, Mar 19, 2012 at 8:15 AM, Rick Stockton <span dir="ltr"><<a href="mailto:rickstockton@reno-computerhelp.com" target="_blank">rickstockton@reno-computerhelp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
I'll top post this one:<br>
<br>
OOPS! And PLEASE ignore my post, in Vol 45/Issue 46, where I talked
about this being requiring "just an easy change": This requires no
changes at all. It's already supported, and it even works back in
4.7.4. (Maybe earlier, but 4.7.4 is the earliest Release I have
"lying around" for test purposes.)<br>
<br>
You only need to ignore the Doco Comment about acceptedButtons
taking only 3 values ;) Y can give it all 5, like this:<br>
<br>
acceptedButtons: Qt.LeftButton | Qt.RightButton<br>
| Qt.MiddleButton |
Qt.XButton1 | Qt.XButton2 <br>
<br>
and your MouseArea will start getting Press and Release events (plus
DoubleClick, plus Press and Hold) for 'BackButton' and
'ForwardButton'.<br>
Here's my Test/Demo/Example program for you to try, and use as a
model (just run it using "qmlviewer"):
<a href="http://pastebin.kde.org/442676/" target="_blank">http://pastebin.kde.org/442676/</a> I set the expiration on that Paste
at 30 days. It will be an official example, but with 27 buttons, in
Qt5.<br>
<br>
On 03/18/2012 05:27 AM, Mark wrote:
<blockquote type="cite">
<div class="gmail_quote">On Sun, Mar 18, 2012 at 1:56 AM, Xavier
Sythe <span dir="ltr"><<a href="mailto:me@sythe.me" target="_blank">me@sythe.me</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As far as I can recall, it was decided that the "back button"
would be implemented in the new Kickoff as support for the
mouse's "back button", as well as support for the "backspace"
key, in conjunction with the other keyboard navigation. (arrow
keys)
<div>
<br>
</div>
<div>I would appreciate Martin and Aaron's confirmation that
this is the finalized concept that will be implemented for
4.9.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Xavier</div>
</blockquote>
<div><br>
</div>
<div>I can confirm (or actually deny) that partly.</div>
<div>They did indeed want to do that, however it was then
figured out that QML didn't get all the mouse events required
for that. That should be fixed in Qt5 but not in Qt4. So i'm
afraid the mouse back/forward button support isn't going to be
in anytime soon.</div>
</div></blockquote><div><div class="gmail_quote"><div><br></div></div></div></div></blockquote><div>Why isn't that documented on the Qt site <a href="http://qt-project.org/doc/qt-4.8/qml-mousearea.html#acceptedButtons-prop" target="_blank">http://qt-project.org/doc/qt-4.8/qml-mousearea.html#acceptedButtons-prop</a>? </div>
<div>That really sucks!</div><div><br></div><div>Nice to know that it's possible :)</div></div><br>