title: How to read QTextEdit text of current QTabWidget's tab?
body: <p>I have many tabs and they contain only one QTextEdit element and i need to read QTextEdit's text of current tab.
  Is it possible to realize?</p>
  
  <pre><code>#!/depot/Python-2.7.6/bin/python
  
  import sys,os,copy,re,subprocess
  from PyQt4.QtGui import *
  from PyQt4.QtCore import *
  
  class Tool(QWidget):
  
      def __init__(self,parent=None):
          super(Tool, self).__init__(parent)
          self.tabs = QTabWidget()
          self.tabs.setTabsClosable(True)
          self.tabs.isMovable()
          self.initUI()
  
      def help_func(self):
          new_tab = QWidget()
          text = QTextEdit(self)
          text.setReadOnly(True)
          text.setLineWrapMode(QTextEdit.NoWrap)
          text.setText("some text")
          TextBoxlayout = QVBoxLayout()
          TextBoxlayout.addWidget(text)
          new_tab.setLayout(TextBoxlayout)
          self.tabs.addTab(new_tab,str(self.tabs.count()))
          self.tabs.setCurrentIndex(self.tabs.count()-1)
  
      def initUI(self):
          Tool.help_func(self)
          Tool.help_func(self)
          Tool.help_func(self)
          grid = QGridLayout(self)
          grid.addWidget(self.tabs,0,0)
          self.setLayout(grid)
  </code></pre>
  
  <p>I wish to print the QTextEdit text on tab change signal.</p>