
first/upper picture shows the original state. the "timelinish" widget inside the scrollarea is the inner widget mentioned. when I resize the whole window, the inner widget grows with the scrollarea (see second picture). When I use the spinbox to change the displayed duration of the timeline, the inner widget calls "update()" for itself, which repaints the widget.
I actually made it rescale to a smaller size when you change the window size
QSize QtTimeLine
::sizeHint() const {
return QSize(frames
* zoom
+ 2,
40);
}
QSize QtTimeLine::sizeHint() const
{
return QSize(frames * zoom + 2, 40);
}
To copy to clipboard, switch view to plain text mode
to
QSize QtTimeLine
::sizeHint() const {
return QSize(frames
* zoom
/*+ 2*/,
40);
}
QSize QtTimeLine::sizeHint() const
{
return QSize(frames * zoom /*+ 2*/, 40);
}
To copy to clipboard, switch view to plain text mode
But I can't get it to rescale when I change the size internally...
I'm a bit confused here
Bookmarks