On Sun, May 19, 2019, 8:11 AM Todd Widup <todd.wi...@gmail.com> wrote:
> anyone have a link or an example of using events and resizing a window? > > basically, I want to set up an event trigger when the window is resized to > adjust the size of a panel to it doesnt get too big > Can you just set a maximumSize on the widget containing the panel? https://doc.qt.io/archives/qt-4.8/qwidget.html#maximumSize-prop Or do you need to be able to dynamically check conditions during every resize event and apply specific size values to the child panel? You can search for "qt resizeEvent example" and find a ton of usages. > -- > Todd Widup > Creature TD / Technical Artist > todd.wi...@gmail.com > > -- > 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 python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CABBPk36AkB7wuERrcjRw%2BY_k8eY45Q5yB7VOWakuC%2BQj53uQgw%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CABBPk36AkB7wuERrcjRw%2BY_k8eY45Q5yB7VOWakuC%2BQj53uQgw%40mail.gmail.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 python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3TsM48G9mYcJ-h_RYtdjZGT5Vyi2kCYTZAOVtZn9jGUg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.