QPropertyAnimation feat QmainWindow::resizeEvent (...)



  • Hello, everyone,

    in the main application window (inherits from QMainWindow) displays two different widgets: QGraphicsView and QwtPlot (qwt-6.0.2). Switching between the widgets is doing by user and, it (switching) is animated (QPropertyAnimation).

    How to resolve the situation: the user resizes the main window, and the animation is not finished yet? Stop animation, calculation to new coordinate, running animations - give no results.

    The solution, which is given in the examples i can't use. It has the all controls on the QGraphicsView and calls QGraphicsView :: fitInView (QRect, QAspectRation) simply by scaling the entire contents of the window, so that, the controls are scaled as pictures.

    best regards,


Log in to reply
 

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