October 5, 2011

ahsub ahsub
Lab Rat
3 posts

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.

2 replies

October 5, 2011

Eddy Eddy
Area 51 Engineer
1296 posts

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

 Signature 

Qt Certified Specialist
Qt Ambassador

October 5, 2011

lorik lorik
Lab Rat
21 posts

I am familiar with the problem ,you have to instantiate your widget with ‘new’ statement

 
  ‹‹ Event Filter receiving unexpected mouse move events      Getting Started quit button example - WinXP error popup upon application exit ››

You must log in to post a reply. Not a member yet? Register here!