Resizing widgets using drag & drop

  • Moved to a new topic, because it is a different question. The "original topic": was on styling the line edit.

    [quote author="Plissken" date="1341420919"]If I wanted to allow the user to resize the width or height of the widget, could that be done using slots and signals? I'm thinking possibly:

    on click -> draw a resize rectangle around the widget.
    on mouse move -> resize the widget
    on mouse click release -> redraw the resize rectangle around the resized widget.

    This would allow users to customize the size of certain widgets and I can still use stylesheets instead of overriding paintEvent.

  • That isn't standard functionality. It will take quite a bit of programming to get this to work properly.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.