I have some troubles with QSplitter Widget. I have quite advanced nested layouts but everything works except this one.
I'll try to picture how this part of my layout looks like.
QVBoxLayout
- QSplitter
- QTabWidget (with 2 tabs)
- Widget derived from QTextEdit
- QLabel
The problem is that my QTextEdit Widget should behave in a way i set in its constructor(i.e.):
{
setMinimumHeight(120);
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
}
and for QTabWidget i set
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
but when i run my app QTextEdit takes most of the window splitted by these two.
Tried to put first code (that in {}) to its parent constructor but nothing changes
I probably don't understand yet fully QSizePolicy and things related...
I want QTextEdit to has its minimal height all the time but in a opportunity to change it manually by handler and rest of the window should be given to QTabWidget.
Could anyone help, give me some hints?
Bookmarks