74 QGraphicsProxyWidget *a = createItem(minSize, prefSize, maxSize, "A"); |
74 QGraphicsProxyWidget *a = createItem(minSize, prefSize, maxSize, "A"); |
75 QGraphicsProxyWidget *b = createItem(minSize, prefSize, maxSize, "B"); |
75 QGraphicsProxyWidget *b = createItem(minSize, prefSize, maxSize, "B"); |
76 QGraphicsProxyWidget *c = createItem(minSize, prefSize, maxSize, "C"); |
76 QGraphicsProxyWidget *c = createItem(minSize, prefSize, maxSize, "C"); |
77 QGraphicsProxyWidget *d = createItem(minSize, prefSize, maxSize, "D"); |
77 QGraphicsProxyWidget *d = createItem(minSize, prefSize, maxSize, "D"); |
78 QGraphicsProxyWidget *e = createItem(minSize, prefSize, maxSize, "E"); |
78 QGraphicsProxyWidget *e = createItem(minSize, prefSize, maxSize, "E"); |
79 QGraphicsProxyWidget *f = createItem(QSizeF(30, 50), QSizeF(150, 50), maxSize, "F"); |
79 QGraphicsProxyWidget *f = createItem(QSizeF(30, 50), QSizeF(150, 50), maxSize, "F (overflow)"); |
80 QGraphicsProxyWidget *g = createItem(QSizeF(30, 50), QSizeF(30, 100), maxSize, "G"); |
80 QGraphicsProxyWidget *g = createItem(QSizeF(30, 50), QSizeF(30, 100), maxSize, "G (overflow)"); |
81 |
81 |
82 QGraphicsAnchorLayout *l = new QGraphicsAnchorLayout; |
82 QGraphicsAnchorLayout *l = new QGraphicsAnchorLayout; |
83 l->setSpacing(0); |
83 l->setSpacing(0); |
84 |
84 |
85 QGraphicsWidget *w = new QGraphicsWidget(0, Qt::Window); |
85 QGraphicsWidget *w = new QGraphicsWidget(0, Qt::Window); |