def _get_buffer(size, filename): buffer = QtSvg.QSvgGenerator() buffer.setResolution( int(QApplication.primaryScreen().logicalDotsPerInch())) buffer.setFileName(filename) buffer.setViewBox(QtCore.QRectF(0, 0, size.width(), size.height())) return buffer
def _get_buffer(size, filename): buffer = QtSvg.QSvgGenerator() buffer.setFileName(filename) buffer.setSize(QtCore.QSize(int(size.width()), int(size.height()))) return buffer
def _get_buffer(size, filename): buffer = QtSvg.QSvgGenerator() buffer.setResolution(QApplication.desktop().logicalDpiX()) buffer.setFileName(filename) buffer.setViewBox(QtCore.QRectF(0, 0, size.width(), size.height())) return buffer
def _get_buffer(size, filename): buffer = QtSvg.QSvgGenerator() buffer.setResolution(QApplication.desktop().logicalDpiX()) buffer.setFileName(filename) buffer.setSize(QtCore.QSize(int(size.width()), int(size.height()))) return buffer