I am making GUI using Qt designer. The Qt designer can intuitively show the location and size of the GUI, so I chose it. However, when operating the code, the size of the GUI and qt designer is different. This also ruined the sizes of other widgets. I don't know for some reason.
Below is my simple code.
import sys
from PyQt5.QtWidgets import *
from PyQt5.QtCore import Qt
from PyQt5.uic import loadUi
class MyWindow(QWidget) :
def __init__(self) :
self.dlg = loadUi('a.ui')
self.dlg.show()
app = QApplication(sys.argv)
myWin = MyWindow()
app.exec()
I searched several sites, but the cause was unknown. I thought it was a setup related issue, but I don't know the exact cause.