Hi. I have a simple problem with layout. I'm creating label and text edit:
layout->addWidget(label);
layout->addWidget(textEdit);
QLabel *label = new QLabel("Label:");
QTextEdit *textEdit = new QTextEdit;
QHBoxLayout *layout = new QHBoxLayout;
layout->addWidget(label);
layout->addWidget(textEdit);
To copy to clipboard, switch view to plain text mode
and I'm getting something like:
------------------------
|-------------|
|-------------|
Label: |-------------|
|-------------|
|-------------|
------------------------
|-------------|
|-------------|
Label: |-------------|
|-------------|
|-------------|
To copy to clipboard, switch view to plain text mode
but I would like to get this:
------------------------
Label: |-------------|
|-------------|
|-------------|
|-------------|
|-------------|
------------------------
Label: |-------------|
|-------------|
|-------------|
|-------------|
|-------------|
To copy to clipboard, switch view to plain text mode
How to do that? Thanks in advance.
Bookmarks