Nominate our 2022 Qt Champions!

Adding new UI forms to the Application for additional windows

  • Hi All,

    In my application, I would like to show a new UI when the user clicks a button / on a particular action.
    This UI is designed using creator similar to the main UI form.
    When this additional ui/form is called using show(), it shows the form but only for a fraction of a second and moves on to the next statement.

    Is there any way to make the control stay on the form till the user either closes the UI or on an action (button click) similar to the standard QDialogs.

    Thanks in advance.

  • Can you show us the code where you make the form to show? Seems like a variable going out of scope.

  • I am familiar with the problem ,you have to instantiate your widget with 'new' statement

Log in to reply