title: Is it possible to set a width for a Widget without Fixing it?
body: <p>I'm trying to set the width of a QScrollArea in PyQt5, but the only thing I found is setting the width through the</p>
  
  <pre><code>scroll.setFixedWidth(360)  
  </code></pre>
  
  <p>function. </p>
  
  <p>The issue is when I put the scroll bar area in a QSplitter</p>
  
  <pre><code>self.splitter2 = QSplitter(Qt.Horizontal) 
  self.splitter2.addWidget(scroll)
  </code></pre>
  
  <p>I cannot resize the scroll bar area width with the mouse any more.</p>
  
  <p>What I would like to do is set the width of the scrollbar area (100 for instance) and be able to modify it afterwards when I click and drag the middle line of the QSplitter. For now it is one (set the width of the scrollbar area) or the other (modify the width with the mouse) - but not both at the same time.</p>
  
  <p>Here's a minimal example:</p>
  
  <pre><code>from PyQt5.QtGui import *
  from PyQt5.QtCore import *
  from PyQt5.QtWidgets import *
  import sys
  
  
  class Viewer(QMainWindow):
      def __init__(self, parent=None):
          super(Viewer, self).__init__()
          self.parent = parent
  
          self.centralWidget= QWidget()
          self.setCentralWidget(self.centralWidget)
          self.mainHBOX = QHBoxLayout()
          self.setFixedWidth(200)
          self.setFixedHeight(200)
  
          label1 = QLabel('blablabalblablabalblablabalblablabalblablabalblablabalblablabalblablabalblablabal')
          label2 = QLabel('blablabal again')
  
          scroll = QScrollArea()
          scroll.setFixedWidth(100)
          scroll.setWidget(label1)
          scroll.setWidgetResizable(True)
  
          self.splitter2 = QSplitter(Qt.Horizontal)
          self.splitter2.addWidget(scroll)
          self.splitter2.addWidget(label2)
  
          self.mainHBOX.addWidget(self.splitter2)
          self.centralWidget.setLayout(self.mainHBOX)
  
  def main():
      app = QApplication(sys.argv)
      ex = Viewer(app)
      ex.setWindowTitle('window')
      # ex.showMaximized()
      ex.show()
      sys.exit(app.exec_( ))
  
  
  if __name__ == '__main__':
      main()
  </code></pre>