title: How to insert multiple previously formed lists into QTextWidget?
body: <p>I want to display multiple lists in QTextEdit, however all functions that insert text only take strings. When reading the documentation of QTextEdit it says that QTextCursor can handle lists, however I can't get its <code>insertList()</code> to work either.</p>
  <p>The following function generates six lists, which I want to display:</p>
  <pre><code>def gen_reading_frames(self):
      frames = []
      frames.append(self.translate_seq(0))
      frames.append(self.translate_seq(1))
      frames.append(self.translate_seq(2))
      tmp_seq = bio_seq(self.reverse_complement(), self.seq_type)
      frames.append(tmp_seq.translate_seq(0))
      frames.append(tmp_seq.translate_seq(1))
      frames.append(tmp_seq.translate_seq(2))
      del tmp_seq
      return frames
  </code></pre>
  <p>These are my approaches:</p>
  <pre><code># 1.: 
  tmp_rf = qtg.QTextListFormat(seq.gen_reading_frames())
  self.textEditReadingFrames.insertList(tmp_orf)
  # 2.: 
  tmp_rf = self.textEditReadingFrames.textCursor()
  tmp_rf.insertList(seq.gen_reading_frames())
  
  </code></pre>
  <p>Both throw type errors, the first one because QTextListFormat does not accept lists, and the second because insertList only accepts QTextListFormat.</p>
  <p>So if both of these do not accept lists, how to display the lists in QTextEdit?
  Or do I have to convert them to strings, because there is just no other way?</p>
  <p>I hope that the question was not asked before, but when searching the forum and Qt documentation I could not find an answer.</p>