[PySide] manually closing editor on custom delegate

Frank Rueter | OHUfx frank at ohufx.com
Wed May 2 23:34:49 CEST 2018


anyone?

On 2/05/18 6:32 PM, Frank Rueter | OHUfx wrote:
> Hi all,
>
> I think I need some MVC help once again:
>
> I am using a custom item delegate that uses the bottom 20 pixels of a 
> cell in a table view for a QComboBox (the rest will be static content).
> I can create the editor in the right spot etc, but I can't figure out 
> how to close it again when the user clicks into the upper part of the 
> cell.
> I tried all sorts of events and signals in the view, the delegate and 
> the editor itself but to no avail.
> This is the state of things:
>
> The initial table:
>
>
> The table with the open editor after clicking into the bottom 20 
> pixels of a cell:
>
>
> The table after I click away from the editor but into the same cell, 
> in which case I'd like to close it and show the initial state as seen 
> above, but I just can't figure out how to.
>
>
> Attached is the working code to produce the above images.
>
> Any help would be greatly appreciated!
>
> Cheers,
> frank
>
>
> -- 
>
> ohufxLogo 50x50 <http://www.ohufx.com> 	
> 	*vfx compositing <http://ohufx.com/compositing.html> | *workflow 
> customisation and consulting <http://ohufx.com/customising.html>* *
> 		*<http://ohufx.com/compositing.html>*
> <http://www.nukepedia.com/nubridge> 	
> 	
>
> Your gateway to over 1,000 free tools... right inside of Nuke 
> <http://www.nukepedia.com/nubridge>
>
>
>
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/pyside

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20180503/76d45c92/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2018-05-02 at 6.27.47 PM.png
Type: image/png
Size: 20665 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20180503/76d45c92/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2018-05-02 at 6.27.52 PM.png
Type: image/png
Size: 28188 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20180503/76d45c92/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2018-05-02 at 6.27.57 PM.png
Type: image/png
Size: 22408 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20180503/76d45c92/attachment-0002.png>


More information about the PySide mailing list