title: How do I remove the space between QPlainTextEdit and its contents
body: <p>I'm using C++ and Qt on Windows to create a simple application which outputs some data to the screen using a QPlainTextEdit. The problem is that there is a small internal margin between the QPlainTextEdit's border and the text as shown here: <a href="http://i.stack.imgur.com/ovIrJ.png" rel="nofollow">http://i.stack.imgur.com/ovIrJ.png</a>.<br>
  (The text in the QPlainTextEdit has been selected to highlight the gap)</p>
  
  <p>I have tried using <code>setContentsMargins(0, 0, 0, 0)</code> and <code>setStyleSheet("padding:0;")</code>, and using a QTextEdit or a QTextBrowser instead, but I still get that small margin.</p>
  
  <p>Googling it only turned up <a href="http://www.qtcentre.org/threads/56908-Text-margin-in-QTextEdit" rel="nofollow">this unanswered question on qtcentre.org</a>.</p>
  
  <p>I know this is kind of a trivial thing but its really been annoying me for a while now.</p>
  
  <p>Thanks in advance for any help!</p>