0

I have written an .py file and converted it into .exe. Now when I open that file in different resolutions some items get invisible.

I had those items fixed with an absolute value according to 1920x1080 resolution. Now when I open it with any different resolution some items get lost.

class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.showMaximized() self.comboBox.setGeometry(QtCore.QRect(510, 60, 900, 100)) self.pushButton.setGeometry(QtCore.QRect(775, 170, 250, 91)) self.ced.setGeometry(QtCore.QRect(75, 290, 35, 32))

Those were some examples of those items and coordinates. There are comboboxes, lineedits, buttons and labels in my .exe. In case you are wondering I can send more of my code.

I couldn't find many libraries to fix this problem of mine.

  • That's one of the many reasons for which: 1. you should (nor can) never assume a fixed size for your programs; 2. you must always use [layout managers](//doc.qt.io/qt-5/layout.html), even in [Designer](https://doc.qt.io/qt-5/designer-layouts.html). – musicamante Jan 16 '23 at 13:21

0 Answers0