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.
私はこれについて多くのことを読みましたが、解決策が見つかりませんでした。私のツリーには何もしていないようですupdate。repaint簡単な再描画のために再構築したくなかったのです。それは私のものではないので、私はアプリケーションをいじりたくありませんでした。私はちょうどそれのためのウィジェットを作成しています。
update
repaint
投稿された回答に出くわしましたが、完全に機能しているようです。
私のウィジェットの QTreeWidget は「ツリー」と呼ばれています....
def repaintAll(self): """ Refresh the paint on the entire tree """ region = self.tree.childrenRegion() self.tree.setDirtyRegion(region)