How to set QTableWidget upper left corner using a background image?

后端 未结 2 1583
小鲜肉
小鲜肉 2021-01-22 04:51

How to set QTableWidget upper left corner using a background image? Now it is white. (Pointed in the image below)

\"

2条回答
  •  情书的邮戳
    2021-01-22 05:22

    You will have to use a custom row-headers column:

    • disable the builtin row headers column,
    • add a column to hold row numbers,
    • define slots to update row ID when rows are added/removed and to select row, change its font etc,
    • and finally set the widget to be used in column=0 column header.

提交回复
热议问题