title: Setting word wrap on QLabel breaks size constrains for the window
body: <p>I have the following code:</p>
  
  <pre><code>import sys
  from PyQt5.QtWidgets import *
  from PyQt5.QtCore import *
  from PyQt5.QtGui import *
  
  TEXT = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " \
         "Nullam malesuada tellus in ex elementum, vitae rutrum enim vestibulum."
  
  #==============================================================================
  class Window(QWidget):
      def __init__(self, *args, **kwargs):
          QWidget.__init__(self, *args, **kwargs)
  
          # Widgets
          self.label = QLabel(TEXT, self) 
  #         self.label.setWordWrap(True)    
          self.text = QTextEdit(self)
          self.text.setMinimumSize(480, 320)
          self.text.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
  
          # Layout
          self.layout = QGridLayout()
          self.layout.addWidget(self.label, 0, 0)
          self.layout.addWidget(self.text, 1, 0)
          self.layout.setContentsMargins(5, 5, 5, 5)
          self.layout.setSpacing(5)
  
          self.setLayout(self.layout)   
  
          self.adjustSize()
          self.show()           
  
  #==============================================================================
  if __name__ == "__main__":
      app = QApplication(sys.argv)
      win = Window()
      sys.exit(app.exec_())
  </code></pre>
  
  <p>It works as expected, producing a window, which cannot be resized to be smaller:</p>
  
  <p><img src="https://i.stack.imgur.com/iZIdF.png" alt="enter image description here"></p>
  
  <p>However, when I uncomment the <code>self.label.setWordWrap(True)</code> line, these constrains seem to disappear. I can resize the window to smaller, completely breaking the layout, as <code>QTextEdit</code> still retains its size constrain:</p>
  
  <p><img src="https://i.stack.imgur.com/H3PUN.png" alt="enter image description here"></p>
  
  <p>I tried to fix this using <code>self.setMinimumSize(self.size())</code>. This works for this particular example, however breaks if the size is bigger, such as <code>self.text.setMinimumSize(480, 800)</code>. That makes the window too small even when it is being created, so <code>setMinimumSize</code> does not help:</p>
  
  <p><img src="https://i.stack.imgur.com/nT0al.png" alt="enter image description here"></p>
  
  <p>Is there a way how to fix it and make the window / layout still match the minimum size of <code>QTextEdit</code> even when word wrap is enabled?</p>
  
  <p>Version information:</p>
  
  <pre><code>OS: Windows-7-SP1 (32bit)
  Python: 3.4.1
  PyQt: 5.3.1
  Qt: 5.3.1
  </code></pre>