title: Disabling editing QLineEdit
body: <p>I would like to make it so under certain conditions, it is impossible to edit a QLineEdit widget. Ideally, it would look something like:</p>
  
  <pre><code>QLE_On = QCheckBox("Non-editable?")
  generic = QLineEdit()
  
  if QLE_On.isChecked():
  #disable editing of generic
  </code></pre>
  
  <p>Looking at the docs, .isReadOnly might be one possible option how to achieve what I'm looking for, but I'm not quite sure  how to implement that.</p>