<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Nov 15, 2015 at 9:48 AM, Florian Bruhin <span dir="ltr"><<a href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">
<br>
</span>FWIW, I have some code to do this which also works for values without<br>
a staticMetaObject:<br>
<br>
<a href="https://github.com/The-Compiler/qutebrowser/blob/master/qutebrowser/utils/debug.py#L91-L167" rel="noreferrer" target="_blank">https://github.com/The-Compiler/qutebrowser/blob/master/qutebrowser/utils/debug.py#L91-L167</a><br>
<a href="https://github.com/The-Compiler/qutebrowser/blob/master/tests/unit/utils/test_debug.py#L125-L185" rel="noreferrer" target="_blank">https://github.com/The-Compiler/qutebrowser/blob/master/tests/unit/utils/test_debug.py#L125-L185</a><br>
<span class=""></span></blockquote><div><br></div><div>Seems like I can use this. Thanks!<br><br></div><div>You may have a minor bug there on line 159:<br><br><a href="https://github.com/The-Compiler/qutebrowser/blob/master/qutebrowser/utils/debug.py#L159">https://github.com/The-Compiler/qutebrowser/blob/master/qutebrowser/utils/debug.py#L159</a><br><br></div><div>With condition not being less-than-or-equal, you miss 'LeftButton' in QFlags like:<br><br></div><div>>>> flags = (Qt.LeftButton | Qt.LeftButton)<br></div></div></div></div>