I'm developing a plugin for QGIS 2.18 where a user can obtain some statistics from a layer, something similar to this:
The above tool can be accessed from the menubar:
Raster > Miscellaneous > Information
What kind of Qt object is the box above and how can I print information not only in a similar format but also in an efficient manner?
At the moment, I'm sending text to a QTextBrowser using something like:
self.dockwidget.textBrowser.setText(str('Layer name: ' + str(layer.name()) + '\nDate: 20/02/2017' + '\nSize: 5 Mb' + ...))