I'm trying to programm an qt application, and my design is the following. I need a menubar, toolbar, statusbar and the central widget. In the central widget i need to change among some custom widgets. Till now i have not problem. But when i programm my custom widget and try to put in the centralwidget, my customwidget not resize. Now i'm testing with a simple custom widget that contains 3 textboxes:

Qt Code:
  1. editor1 = new QTextEdit;
  2. editor2 = new QTextEdit;
  3. editor3 = new QTextEdit;
  4. splitter = new QSplitter (Qt::Horizontal,this);
  5. splitter->addWidget(editor1);
  6. splitter->addWidget(editor2);
  7. splitter->addWidget(editor3);
To copy to clipboard, switch view to plain text mode 

and in the mainwindows i programm something like this:

Qt Code:
  1. CreateToolBars();
  2. CreateStatusBar();
  3.  
  4. QWidget *w = new QWidget;
  5. setCentralWidget(w);
  6.  
  7. TextEditor = new WindowsTextEditor(); //--->this is my custom widget
  8. TextEditor->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
  9. vbox->addWidget(TextEditor);
  10. w->setLayout(vbox);
To copy to clipboard, switch view to plain text mode 

This paint the toolbar, menubar, statusbar and in the central widget puts a little box....
I have tryed to give size to my widget, like this:
Qt Code:
  1. TextEditor = new WindowsTextEditor(800,800);
To copy to clipboard, switch view to plain text mode 

and in my custom:
Qt Code:
  1. this->setGeometry(0,0,width,height);
  2. editor1 = new QTextEdit;
  3. ...
To copy to clipboard, switch view to plain text mode 

But do the same, a little textbox....
Someone knows what's happening?

Thanks