Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Main QSplitter + QGroupBox - not stretched to width and to height ; error StackHash_e8ad
Qt 6.11 is out! See what's new in the release blog

Main QSplitter + QGroupBox - not stretched to width and to height ; error StackHash_e8ad

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    ptktysq
    wrote on last edited by
    #1

    @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.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      ptktysq
      wrote on last edited by
      #2

      How I can sent(set)picture for Your -in this forum????

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved