[Qgis-developer] ItemDelegate with a tool button: can't click

Denis Rouzaud denis.rouzaud at gmail.com
Wed May 7 23:43:18 PDT 2014


Hi Gino,

Thanks for your interest, I got a reply on stackoverflow.
One told me to use setFocusProxy(mCombo); and this works well!

Anyway, I thought first of using mouse press event filtering, but I 
wasn't sure how to deal with it.

Cheers,

Denis

On 08.05.2014 08:19, Gino Pirelli wrote:
> do you mind to use hover events to enable or filter click event?
>
>
> On 7 May 2014 08:38, Denis Rouzaud <denis.rouzaud at gmail.com 
> <mailto:denis.rouzaud at gmail.com>> wrote:
>
>     Hi all,
>
>     Nyall is using the new QgsFieldExpressionWidget as an item
>     delegate and there's a problem with clicking on the button.
>
>     Indeed, pressing on the button (to open the expression dialog)
>     works only and only if the combo box has the focus.
>
>     For a demo, see http://youtu.be/o5AgjC4cCqY
>
>     Do you have any idea how to handle this?
>
>     Thanks a lot,
>
>     Denis
>
>     PS: I posted the same question on stackoverflow:
>     http://stackoverflow.com/questions/23510297/qt-itemdelegate-with-a-tool-button-cant-click
>     _______________________________________________
>     Qgis-developer mailing list
>     Qgis-developer at lists.osgeo.org <mailto:Qgis-developer at lists.osgeo.org>
>     http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140508/b0bf83a7/attachment-0001.html>


More information about the Qgis-developer mailing list