cic
16th January 2014, 10:30
Hello all,
i have inserted a second QToolBar at the bottom of QMainWindow,
this toolbar in my desire should be shown/hided-enabled by user.
like a search bar in webbrowser.
if (! m_findReplaceBar->isVisible()) {
m_findReplaceBar->show();
QPropertyAnimation *a = m_findReplaceBar->m_animator;
if (a) {
QRect rect = m_findReplaceBar->geometry();
a-> setEndValue(rect);
rect.setTop(rect.bottom());
a->setStartValue(rect);
a->start();
}
}
i found it after calling show() for the toolbar, the space which for the full rage of toolbar is preserved while not updated together with
the toolbar's animation.
9936
well the example is above. it loooooks so ugly
i have inserted a second QToolBar at the bottom of QMainWindow,
this toolbar in my desire should be shown/hided-enabled by user.
like a search bar in webbrowser.
if (! m_findReplaceBar->isVisible()) {
m_findReplaceBar->show();
QPropertyAnimation *a = m_findReplaceBar->m_animator;
if (a) {
QRect rect = m_findReplaceBar->geometry();
a-> setEndValue(rect);
rect.setTop(rect.bottom());
a->setStartValue(rect);
a->start();
}
}
i found it after calling show() for the toolbar, the space which for the full rage of toolbar is preserved while not updated together with
the toolbar's animation.
9936
well the example is above. it loooooks so ugly