无法完全删除PyQt QGraphicsVi的边框

2024-03-28 22:29:31 发布

您现在位置:Python中文网/ 问答频道 /正文

我试过在QGraphicsView上调用self.setStyleSheet("background: transparent; border: transparent;"),但它仍然在顶部边缘留下一个1像素的边框。我也试过用border-style: none;替换border: transparent;,但也没用。

以下是问题的截图:

Problematic line

什么命令将从QGraphicsView中完全删除边框?


Tags: 命令selfnonestyle像素边缘边框background