Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
すべての Qt ウィジェットには、既存のテキストを置き換える SetText と、QString を追加する前に新しい行を追加する追加がありますが、テキストを連結する方法はありますか?
次を使用して手動で行うことができますsetText():
setText()
widget->setText(widget->text() + "new text");