How do I use QTextBlock?

前端 未结 3 881
夕颜
夕颜 2021-01-02 10:31

I\'m completely new to C++ and Qt.

I want to populate a QTextEdit object with QTextBlocks, how do I do that?

e.g. If I hav

3条回答
  •  自闭症患者
    2021-01-02 11:20

    You should check the documentation here

    You could assign your string to a QString and then add that to the QTextEdit, or you could parse the QString using section() see here

提交回复
热议问题