我有幾個QGraphicsScene子類「CustomScene」都來自包含虛函數cut(),copy(),paste()和delete()的通用接口。 QGraphicsScene是超類,它由CustomSceneInterface繼承,由CustomScene繼承。每個CustomScenes都顯示在主窗口的單獨QGraphicsViews中。我也有剪切,複製,粘貼和刪除的QActions。如何將信號轉發到最後點擊的QGraphicsScene
我無法弄清楚如何將QAction信號發送到上次點擊的任何一個CustomScene(或具有「焦點」的任何一個)。
我該怎麼做?