0
rssフィードの結果を同じqlabelに入れたいです。ここに私のラベルはPython Qtと複数行qlabel
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.
また、2番目の問題は、どのようにDescを分割ボックス内で折り返すことができるのですか?文字のx amoutnを改行してください。
大変ありがとうございます。私はドキュメントを読むときに "\ nサマリー"が欠けていました。簡単にミス。再度、感謝します。 –
あなたはまた、箱の中を包み込む方法を知っていませんか?私はそれが50文字で壊れて欲しいと言いますか? –
http://doc.qt.io/qt-5/qlabel.html#wordWrap-prop – LtWorf