Time:04-26
CodePudding user response:
animate specific baidu
Quote: refer to 1st floor mango black response: animate specific baidu bosses, convenient for example? For example Public parentDlg: public QDialog {} Public subDlg: public QDialog {} By the switch to the parentDlg subDlg, I am so write ParentDlg DLG. DLG. SetModel (true); Int res=DLG. The exec (); If (res==QDialog: : Accepted) {SubDlg subDialog; SubDialog. The show (); } How can I set the animation?
Quote: refer to the second floor lwei2 response: Quote: refer to 1st floor mango black response: animate specific baidu bosses, convenient for example? For example Public parentDlg: public QDialog {} Public subDlg: public QDialog {} By the switch to the parentDlg subDlg, I am so write ParentDlg DLG. DLG. SetModel (true); Int res=DLG. The exec (); If (res==QDialog: : Accepted) {SubDlg subDialog; SubDialog. The show (); } How can I set the animation? You have to know how to use Qt animation ah you have a look at how to use QPropertyAnimation refer to the second floor lwei2 response: Quote: refer to 1st floor mango black response: animate specific baidu bosses, convenient for example? For example Public parentDlg: public QDialog {} Public subDlg: public QDialog {} By the switch to the parentDlg subDlg, I am so write ParentDlg DLG. DLG. SetModel (true); Int res=DLG. The exec (); If (res==QDialog: : Accepted) {SubDlg subDialog; SubDialog. The show (); } How can I set the animation? If you don't need animation just want to switch to another window? refer to the second floor lwei2 response: Quote: refer to 1st floor mango black response: animate specific baidu bosses, convenient for example? For example Public parentDlg: public QDialog {} Public subDlg: public QDialog {} By the switch to the parentDlg subDlg, I am so write ParentDlg DLG. DLG. SetModel (true); Int res=DLG. The exec (); If (res==QDialog: : Accepted) {SubDlg subDialog; SubDialog. The show (); } How can I set the animation? It seems you don't need animation just want to switch to another window? The current window hide, it is ok to show new window
Page link:https//www.codepudding.com/Mobile/109304.html