I developing QGIS module and I have a question, how to capture QgsMapCanvas window with OpenCV for shoving in different frame or different application?
Part of the code:
class MainWindow( QtWidgets.QMainWindow, Ui_MainWindow ):
def __init__( self ):
QtWidgets.QMainWindow.__init__( self )
self.setupUi( self )
self.setWindowTitle( "QGIS Demo" )
# Create map ()
self.canvas = QgsMapCanvas()
self.canvas.setCanvasColor( QtGui.QColor( 200, 200, 255 ) )
self.canvas.enableAntiAliasing( True )
self.canvas.show()