Argh!

The mistake was her:
Qt Code:
  1. for (int i; i<plainDongle->DNG_Memmory/4; i++) {
To copy to clipboard, switch view to plain text mode 

i has no value...

so my program starts, but i have another problem with my layout.

If i call
Qt Code:
  1. setLayout(dongleLayout);
To copy to clipboard, switch view to plain text mode 

I become an error, wicht a layout is already set. How can I add my dongleLayout to CMainWindow?

CMainWindow is my QMainWindow I've created this with QtDesigner.
I can't found a function addLayout.

The error:
QWidget::setLayout: Attempting to add QLayout "" to QWidget "layoutWidget", which already has a layout