Home > Mobile >  Qt interface cannot display problems.
Qt interface cannot display problems.

Time:11-23

Problem description: there are two interfaces of A and B, A is B's parent form, from A to B, then jump back to A time, A interface does not display, click on the screen of the corresponding position, however, still can respond to A function (such as where click on the button, although there is no interface, but the button still response function), when again from A to B, then jump back to A time, A can display interface, that is to say, don't show the problem is to boot the first jump time of, the following is A general idea of the two interface class
 
Class B: public QMainWindow
{
//...
Void on_pushButton_clicked () {
//...
This - & gt; ParentWidget () - & gt; Show ();
Hide ();
}
}

Class A: public QMainWindow
{
//...
Void on_pushButton_clicked () {
//...
B * B=new B (this);
B - & gt; Show ();
Hide ();
}
}

CodePudding user response:

Set!!! ~ ~ ~ ~

CodePudding user response:

setfocus

CodePudding user response:

refer to the second floor the young-at-heart cuzn response:
setfocus
capturemouse

CodePudding user response:

Should be to improve layer

CodePudding user response:

In the same way A * A=new A; A.s how (); Enclosing the close (); See can not

CodePudding user response:

Don't know what your version of QT, I use a 5.12 no problem


Shows two interface switch no problem

CodePudding user response:

The
refer to 6th floor a _ _ lee of the tent of reply:
don't know what your version of QT, I use a 5.12 no problem


Shows two interface switch no problem


Is not a problem will now, occasionally have triggered such a problem,

CodePudding user response:

In PC, I also is rare, but often appear in embedded end,

CodePudding user response:

Isn't child window with the parent window display and display, hide to hide?

CodePudding user response:

Laura, 9/f,
reference Tony reply:
isn't child window with the parent window display and display, hide to hide?

Both show a more often than not,
  •  Tags:  
  • Qt
  • Related