Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Why the changes are not applied in my form, when using the Qt designer



  • Hi guys, I have the following problem.
    When making any changes in the Qt designer, for example adding or removing a widget, or making any changes visually, it is not reflected in the code, and when I run the program, the added widgets are not shown either.

    I tried doing Clean, Run qmake and Rebuild, and even delete the compilation folder, but nothing, any suggestions would be appreciated.

    Here is my form in the Qt designer.

    e0749372-9524-4041-97f9-5fb61b96156d-image.png

    And when I run it, nothing is displayed.

    4c18f4fd-6957-4fc7-80bf-d6004e01701d-image.png



  • @lincoln

    Are you sure you edit the correct version?
    In addition: are you sure that your widget really is the one you see there?

    How's your dialog created?



  • @Pl45m4
    What do you mean by the correct version?

    Well, regarding how you create the dialog, use the wizard that Qt brings, so I added it.



  • @lincoln
    It may depend on your settings.
    If you have enabled saving while building it should. Maybe save your file and rebuild it.
    As @Pl45m4 said
    You may be accessing different forms.
    See you have "editdialog"

    You may be accessing main application page not "editdialog"
    So

    You should show something more than this.

    What is your application name?
    Do you have multiple files in your project. If so then there is nothing wrong there. You just need to either show it after window loads or on some events


Log in to reply