Main QSplitter + QGroupBox - not stretched to width and to height ; error StackHash_e8ad
-
@TextView::TextView(QWidget *parent)
:QWidget(parent)
{QGroupBox* BoxInput = new QGroupBox(tr("talk"));
BoxInput->setAlignment(Qt::AlignCenter);
InputText = new QTextEdit();
InputText->setReadOnly(true);
QHBoxLayout* HLayout2 = new QHBoxLayout();
HLayout2->setMargin(5);
HLayout2->addWidget(InputText);
BoxInput->setLayout(HLayout2);QSplitter* Splitter = new QSplitter(this);
Splitter->setOrientation(Qt::Vertical);
Splitter->addWidget(BoxInput);
QFormLayout* DateForm = new QFormLayout;
QFormLayout* TimeForm = new QFormLayout;
CurrDate = new QLineEdit;
TotalTime = new QLineEdit;
QGroupBox* BoxTime = new QGroupBox(tr("time"));
BoxTime->setAlignment(Qt::AlignCenter);
DateForm->addRow(tr("date :"), CurrDate);
TimeForm->addRow(tr("total :"), TotalTime);
QHBoxLayout* HLayout0 = new QHBoxLayout;
HLayout0->addLayout(DateForm);
HLayout0->addLayout(TimeForm);
BoxTime->setLayout(HLayout0);Splitter->addWidget(BoxTime);
QGroupBox* BoxOutput = new QGroupBox(tr("message to"));
BoxOutput->setAlignment(Qt::AlignCenter);
OutputText = new QTextEdit();
QHBoxLayout* HLayout1 = new QHBoxLayout();
HLayout1->setMargin(5);
HLayout1->addWidget(OutputText);
BoxOutput->setLayout(HLayout1);
Splitter->addWidget(BoxOutput);
Send = new QPushButton(tr("send"));
Clean = new QPushButton(tr("clean"));
QHBoxLayout* HLayout3 = new QHBoxLayout();QGroupBox* BoxButton = new QGroupBox(tr("manage"));
BoxButton->setAlignment(Qt::AlignHCenter);
HLayout3->addWidget(Send);
HLayout3->addWidget(Clean);
BoxButton->setLayout(HLayout3);
Splitter->addWidget(BoxButton);
Splitter->adjustSize();}
@when I run this and close - I receive error "StackHash_e8ad", and my application is not auto stretched when user do it: all set as fixed, and onlymain widget is stretched. void QSplitter::setStretchFactor is not work. I want send picture I not can: http link is out???????? Please, help me! I need help.