Could you provide a minimal compilable example reproducing the problem?
Could you provide a minimal compilable example reproducing the problem?
I have been clean the programm.....
Here you are...
You didn't add the splitter into the widget's layout.
I have just change the code of my custom widget constructor with (I think is that you are telling me):
Qt Code:
splitter->addWidget(editor1); splitter->addWidget(editor2); splitter->addWidget(editor3); vbox->addWidget(splitter); //new this->setLayout(vbox); //newTo copy to clipboard, switch view to plain text mode
And the box is bigger but only shows one white box (text editor) and can't do anything in it (can't write....), and the box do not resize when i resize the mainwindow.
For me it seems your class is completely broken.
You should implement it like so:
Qt Code:
#include <QtGui> public: } }; int main(int argc, char **argv){ X edit; edit.show(); return app.exec(); }To copy to clipboard, switch view to plain text mode
Bookmarks