title: pyqt4 QTextEdit - How to setMaxLength?
body: <p>I have a multi-line QTextEdit that is tied to database VARCHAR(2048) field.</p>
  
  <p>I want to limit the user entry length to max of 2048 chars</p>
  
  <p>QTextEdit does not have a setMaxLength(int) method like QLineEdit does.</p>
  
  <p>Anyone have any suggestions?</p>
  
  <pre><code>self.editBox = QTextEdit()
  </code></pre>
  
  <p>Thanks</p>