Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
4.4.2
-
None
Description
Adding a Widget to the layout of a QScrollArea causes the view to flicker. It seems that the widgets are resized at the reception of the resize event from the scroll area. This problem is especially visible with smalls CPU.
The following code demonstrate the problem:
class ScrollJump : public QWidget
{
Q_OBJECT
public:
ScrollJump(QWidget *parent = 0, Qt::WFlags flags = 0):QWidget(parent, flags)
private:
QVBoxLayout* m_viewportLayout;
private slots:
void on_pushButton_clicked()
};
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
ScrollJump w;
w.show();
return a.exec();
}