[SOLVED] QTabWidget tabName and qplaintextedit::textChanged() signal problem
-
mrjj Lifetime Qt Championreplied to takoo on 8 Feb 2016, 21:35 last edited by mrjj 2 Aug 2016, 21:44
@takoo
Well i'm out of guesses. sorry.
There is no reason that setTabText should not work.please see this small sample that change tabtext when u write in edit
https://www.dropbox.com/s/pm5uolmc7m0fo2w/mytabs.zip?dl=0 -
@takoo
Ok, im sure what u changed? -
i sent scripts. You can see
-
@takoo
Ohh, the function was empty?? -
@mrjj http://www116.zippyshare.com/v/M9f6gXaM/file.html
Try to run this project (myTabs) -
mrjj Lifetime Qt Championreplied to takoo on 11 Feb 2016, 19:57 last edited by mrjj 2 Nov 2016, 20:00
@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. ?
-
mrjj Lifetime Qt Championreplied to takoo on 11 Feb 2016, 20:06 last edited by mrjj 2 Nov 2016, 20:11
@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 -
@takoo
So all came from u had 2 windows but the second was never shown so
it seem that nothing happened. :)
code help for me to undestand, so good idea :)
28/31