ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

сообщение · 2021-06-20 02:18 UTC
R
Has anyone here ever worked with QPrinter or QPdfWriter? I'm totally confused with all this QPainter stuff. All I want to do is to convert an SVG to PDF. I'm using SvgRenderer, which creates a Painter. But I don't know where to go from there. My small piece of code: def convert(self): file = "/home/ricardo/Imagens/desenho.svg" svg = QSvgRenderer() out = svg.load(file) printer = QPrinter(out) # Am I mad? I suppose "out" is a QPainter. printer.setOutputFormat(QPrinter.PdfFormat) printer.setOutputFileName("/home/ricardo/Imagens/file.pdf") # I don't know what to do from here

All messages on 20 June 2021 · Whole feed · оригинал в Telegram

Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog