Re: [Maya-Python] clicked signals around a QLabel

2018-12-18 Thread Justin Israel
On Wed, Dec 19, 2018 at 3:13 PM likage wrote: > Hi Justin, > > jumping back onto this thread... So, I managed to get a QPushButton, > converted into a QGraphicsProxyWidget, and have it implemented into a > horizontal QGraphicsLinearLayout together with the title. > > But, currently I have an

Re: [Maya-Python] clicked signals around a QLabel

2018-12-18 Thread likage
Hi Justin, jumping back onto this thread... So, I managed to get a QPushButton, converted into a QGraphicsProxyWidget, and have it implemented into a horizontal QGraphicsLinearLayout together with the title. But, currently I have an issue where this horizontal layout though is being added

Re: [Maya-Python] clicked signals around a QLabel

2018-12-07 Thread Justin Israel
On Sat, Dec 8, 2018, 8:24 AM likage wrote: > I am slightly confused now... > I apologize in advance, not an excuse but this is my first time dealing > with QGraphicsXXX and have it integrated with the 'normal' widgets.. > > In the BaseWidget script - filled_round_rect(), it appears that the icon

Re: [Maya-Python] clicked signals around a QLabel

2018-12-07 Thread likage
I am slightly confused now... I apologize in advance, not an excuse but this is my first time dealing with QGraphicsXXX and have it integrated with the 'normal' widgets.. In the BaseWidget script - filled_round_rect(), it appears that the icon creation is made there and so I added this part in:

Re: [Maya-Python] clicked signals around a QLabel

2018-12-06 Thread Justin Israel
Well you can't put a normal QWidget into a QGraphicsScene unless you wrap it in a QGraphicsProxyWidget . But if you start doing this a lot then you are going to start reducing your performance back towards a normal QWidget setup. It would

Re: [Maya-Python] clicked signals around a QLabel

2018-12-06 Thread likage
Hi Justin, Thank you for getting back. I had thought using the above example may help me out but turns out not. :( And so, I have decided to paste the code here in hopes of some guidance/ insights if any... BaseWidget GraphicsWidget

Re: [Maya-Python] clicked signals around a QLabel

2018-12-06 Thread Justin Israel
This is caused by the fact that the event handling is on the QLabel and even though you think you are clicking on blank space, its just the part of the QLabel where the image no longer covers. You have the QLabel inside of a layout, which means it will expand when you resize the parent widget. So