Python Qt 和多行 qlabel

Python Qt and multi row qlabel

我想在同一个 qlabel 中获得 rss 提要的结果。这是我的标签

Title = QLabel("Title: %s " % (title.text), self)
desc = QLabel("Summary: %s " % (desc.text), self)

这是我当前的布局

    h_splitter1 = QSplitter(Qt.Horizontal, self)
    h_splitter1.addWidget(Title)
    h_splitter1.addWidget(Desc)

截至目前,它显示在单独的分隔框中。我怎样才能将它们组合起来,使它们像这样显示:

Title: Price, Sox look forward to re-setting Tuesday
Desc: Red Sox ace David Price had no issue with Monday's "coldout" in Cleveland. Roughly an hour after the decision had been made to postpone Opening Day until Tuesday at 1:10 p.m. ET, Price still had numbness in his throwing hand -- and that was just from playing catch for five minutes.

还有第二个问题是如何让 Desc 包裹在分隔框内?说在 x amoutn 个字符转到新行。

desc = QLabel("Title: %s\nSummary: %s " % (title.text, desc.text), self)