ich hab ein kleines problem mit QGridLayout,
ich will der combobox und der lineEdit mehr abstand und beide sollen gleich gross sein, den Button will ich auch kleiner machen!
leider bekomm ich das mit setGeometry nicht hin;-(
aktueller screen liegt mit bei...
Code: Alles auswählen
QLineEdit *lineEdit = new QLineEdit("1111111");
QTextEdit *textEdit = new QTextEdit;
QLabel *Label = new QLabel("GSM Netz");
QLabel *Label2 = new QLabel("Handynummer");
QLabel *Label3 = new QLabel("Ihre Nachricht");
QComboBox *Combo = new QComboBox;
QPushButton *Button = new QPushButton("SMS Senden");
Combo->addItem("T-Mobile (676)");
Combo->addItem("A1 (664)");
Combo->addItem("One (699)");
Combo->addItem("Telering (650)");
Combo->addItem("Drei (660)");
Combo->addItem("Tele2 (668)");
QGridLayout *layout = new QGridLayout;
layout->addWidget(Label, 0, 0);
layout->addWidget(Label2, 0, 1);
layout->addWidget(Combo, 1, 0);
layout->addWidget(lineEdit, 1, 1);
layout->setRowMinimumHeight(2, 10);
layout->addWidget(Label3, 3, 0);
layout->addWidget(textEdit, 4, 0, 3, 2);
layout->addWidget(Button, 7, 1);
setLayout(layout);
setWindowTitle(tr("SMS-Sender"));
resize(300, 240);