left is what pyqt6 widget looks like, right is what svg looks like
the svg is manually made
how do i make left the same as right ? (code below)
from PyQt6.QtWidgets import QApplication, QWidget, QMainWindow, QHBoxLayout
from PyQt6.QtSvgWidgets import QSvgWidget
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.setMinimumWidth(200)
self.setMinimumHeight(200)
layout = QHBoxLayout()
#polygon = QLabel()
#polygon.setPixmap(QPixmap("resources/hexagon.svg", ))
polygon = QSvgWidget("resources/hexagon.svg")
layout.addWidget(polygon)
widget = QWidget()
widget.setLayout(layout)
self.setCentralWidget(widget)
app = QApplication([])
main_window = MainWindow()
main_window.show()
app.exec()