Here's how i initialize my application
	
	- setCentralWidget( Mainwindow ); 
- Mainwindow->showMaximized(); 
-   
- Top_GroupBox  = new QGroupBox(-  tr ( "Group 1" ) )- ; 
-   
- ....... 
- MyLayout1->addWidget( Label1, 1, 0, Qt::AlignRight ); 
- MyLayout1->addWidget( LineEdit1, 1, 1, Qt::AlignLeft ); 
- ....... 
- Top_GroupBox->setLayout( MyLayout1 ); 
-   
- // create 2 more Qgridlayouts here 
- ..... 
- // add all 3 Qgridlayouts to the mainwindow 
- ..... 
        Mainwindow = new QWidget;
setCentralWidget( Mainwindow );
Mainwindow->showMaximized();
Top_GroupBox = new QGroupBox( tr( "Group 1" ) );
QGridLayout *MyLayout1 = new QGridLayout;
.......
MyLayout1->addWidget( Label1, 1, 0, Qt::AlignRight );
MyLayout1->addWidget( LineEdit1, 1, 1, Qt::AlignLeft );
.......
Top_GroupBox->setLayout( MyLayout1 );
// create 2 more Qgridlayouts here
.....
// add all 3 Qgridlayouts to the mainwindow
.....
To copy to clipboard, switch view to plain text mode 
  
				
			
Bookmarks