Important: Please read the Qt Code of Conduct -

Multiple *ui in save in just one *ui file

  • Dear all,
    You know you can after working in Qt Designer and converting via pyuic4 command to executable program or module, You can modify your code and merge together and build a complete program, But i have serious question:
    Suppose I have QMainWindow, some QFrame and i don't want to save in separately *ui files, i need to save in just one *ui file, it's possible?

    Please read advantage and disadvantage.....

  • Moderators


    Each .ui file stores one widget only. If you want two separate widgets, you need to store then in two separate .ui files.

    If you can merge your QFrame into your QMainWindow, then you can use one .ui file.

    I hope this clarifies things for you.

Log in to reply