As commented by @ThomasG77, you need to: … use QgsLayerTreeMapCanvasBridge to sync your canvas with your layerTreeRoot e.g demo in section ...
確定! 回上一頁