[SOLVED] QTabWidget tabName and qplaintextedit::textChanged() signal problem
Unsolved
General and Desktop
-
@takoo
hi
you create a new version of main window hereplaint::plaint(QWidget *parent):QPlainTextEdit(parent) { mw=new MainWindow();<<---------------- new main wind connect(this,SIGNAL(textChanged()),mw,SLOT(yildiz())); }
mw is never shown and u never see u change the tabtext in this new version you create.
in main.cpp, you already create a Mainwindow version so not sure why u create a new one. ?
-
@takoo
well It really depends what u want ?
Im not sure why you have
class plaint:public QPlainTextEdit
Instead of just using QPlainTextEdit directly ?update:
i fixed the sample to do what u talked about first.
To change the tabtext for the tab.
https://www.dropbox.com/s/eezslmryro6ptrj/mytabs.zip?dl=0