Unsolved Referring to textEdit inside QTabWidget
-
Hi.
To copy text from textEdit I do like this: ui-> textEdit-> copy (), but I have a QTabWidget with multiple tabs.
How can I access textEdit inside a tab (QWidget) to copy the text? -
@MyNick-0 said in Referring to textEdit inside QTabWidget:
How can I access textEdit inside a tab (QWidget) to copy the text?
In exact same way. Or do you have custom widgets with own ui pointer on these tabs?
-
Here is my code:
QWidget * tab = new QWidget (); QTextEdit * textEdit = new QTextEdit; sWindow-> tabWidget-> addTab (textEdit, "Tab 1");
-
@MyNick-0 How is this code related to the code you posted before? Now you posted code without ui->
If you want to access textEdit after setting up the tab widget simply make it member variable.