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 (); } }