QTableWidget - putting multiple lines of text in one row

前端 未结 3 1706
天命终不由人
天命终不由人 2021-02-06 11:10

Is it possible to put multiple lines of text in one row of QTableWidget?

3条回答
  •  我在风中等你
    2021-02-06 11:35

    just make vertical headers to fit the contents then use a text as long as you want.

    QTableWidget::verticalHeader()->resizeSections(QHeaderView::ResizeToContents);
    

提交回复
热议问题