add properties in the layout widget

This commit is contained in:
nobohan
2021-07-13 13:47:06 +02:00
parent 04af3c1884
commit cb28240d74
4 changed files with 13 additions and 228 deletions

View File

@@ -17,10 +17,15 @@ class PlotLayoutItem(QgsLayoutItem):
super().__init__(layout)
def draw(self, context):
pass
# if not self.html_loaded:
# self.load_content()
#pass
#if not self.html_loaded:
painter = context.renderContext().painter()
painter.save()
def load_content(self):
return 'vjdnvjndjn'
# if not self.layout().renderContext().isPreviewRender():
# # this is NOT safe to do when rendering in the gui (i.e. a preview render), but for exports we have
# # to loop around until the HTML has fully loaded