Home > Mobile >  Qwizard problem for help
Qwizard problem for help

Time:03-19

Recently in do the wizard class interface, a database to connect to the database in the first few interface, and then let the data display behind an interface, but the actual found in the back of the interface before use setpage added after unable to refresh the display data, the data is displayed in the Qsqlquerymodel, does excuse me because setpage added after any changes in the interface class are not synchronized to the has been added to the interface in the wizardpage?

CodePudding user response:

In the structure of the wizard class Licensewizard QWizard (parent)
SetPage (Page_Second, new Secondpage);
SetPage (Page_Seventh, new Seventhpage);//the first parameter is the enumeration, the second one is me the interface of form class
In the Secondpage structure such as the second interface before
SevenPage * page=new SevenPage;
The connect (this SIGNAL, page, SLOT);
Signals are keys in the SecondPage trigger emit a signal function, groove function is defined in the class SevenPage, groove function with qdebug, programs run qdebug content would appear, but the groove function written by other SevenPage interface changes will not take effect

CodePudding user response:

But I am one of the first interface in the FirstPage click on the button to trigger the function on the interface of modification is valid, the sender is the interface of a control pushbutton, the receiver is the current interface pointer, this isn't to modify

CodePudding user response:

If called directly in the structure of the Sevenpage slot function can also be effective through the connect call will not take effect but qdebug told me trough function is just come into force on the modification of the interface doesn't take effect

CodePudding user response:

QWizard long ago once feeling bad, then write a QStackWidget by yourself
  •  Tags:  
  • Qt
  • Related