Take a look at implementing heightForWidth() on your custom button http://doc.qt.io/qt-4.8/qwidget.html#heightForWidth
On Mon, 25 May 2015 5:59 AM Jean Noval <[email protected]> wrote: > Hello, > > I think you didn't completely understand my message. > > You only answered my second question. > > My first question was about the size of a button, when I add a button too > a GridLayout, the button is (by default) rectangular (width > height). > I want the button's height and width equal. > When I resize my UI I want the button to grow or shrink while keeping it's > width/height ratio. > > > > Can you give me an example ? > > Thx > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/d5d6334c-2a72-4a88-853f-58ba8978e340%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/d5d6334c-2a72-4a88-853f-58ba8978e340%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1jK4qNq%2BOQB4yPGuBirPA2t5pdezmaUaMbTE8GH9VFgA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
