Hi tinysoft!
Thank you very much. With your file and some work I found the problems:
1) I was missing:
in1->setDisabled(1);....
in1->setDisabled(1);....
To copy to clipboard, switch view to plain text mode
2)
setCentralWidget(widget);
QWidget *widget = new QWidget;
setCentralWidget(widget);
To copy to clipboard, switch view to plain text mode
because of QMainWindow. QWidget, for example, is a member of it.
and
3) I removed the GroupBox and just used:
...
widget->setLayout(formLayout);
QGridLayout *formLayout = new QGridLayout;
...
widget->setLayout(formLayout);
To copy to clipboard, switch view to plain text mode
Now everything works fine :-)!
Thanks for your hints and have a nice day!
Bookmarks