Ich möchte aber, dass der Dialog automatisch zu der richtigen Größe schrumpft oder sich vergrößert.
Hat da jemand einen Tip, wie ich das hinkriege?
Danke,
Teetrinker
Code: Alles auswählen
VDialog = new QDialog(this);
gridLayout = new QGridLayout(VDialog);
vboxLayout = new QVBoxLayout();
VDialog->setWindowFlags(Qt::Tool);
V1label = new QLabel(VDialog);
V2label = new QLabel(VDialog);
V3label = new QLabel(VDialog);
V4label = new QLabel(VDialog);
vboxLayout->addWidget(V1label);
vboxLayout->addWidget(V2label);
vboxLayout->addWidget(V3label);
vboxLayout->addWidget(V4label);
gridLayout->addLayout(vboxLayout, 0, 0, 1, 1);