auto *labelLayout = new QHBoxLayout;
labelLayout->addWidget(new QLabel("削除(左列)"));
labelLayout->addWidget(new QLabel("適用(右列)"));
labelLayout->addWidget(new QLabel("適用(右列)"));
auto *container = new QWidget;
auto *containerLayout = new QVBoxLayout(container);
containerLayout->addLayout(labelLayout);
containerLayout->addWidget(grid);
scrollArea->setWidget(container);
container:大きいレイアウトの中に入れる対象、containerLayout:その container 内での並べ方の定義 と 考える。
0 件のコメント:
コメントを投稿