Encounter this problem, but the code will be a problem, the feeling
The code is as follows:
HeadLabel=new QLabel (tr (" avatar: "));
HeadIconLabel=new QLabel;
QPixmap icon (" 312 PNG ");
HeadIconLabel - & gt; SetPixmap (icon);
HeadIconLabel - & gt; Resize (icon. Width (), icon. The height ());
UpdateHeadBtn=new QPushButton (tr (" update "));//error position here
TopRightLayout=new QHBoxLayout ();
TopRightLayout - & gt; SetSpacing (20);
TopRightLayout - & gt; AddWidget (HeadLabel);
TopRightLayout - & gt; AddWidget (HeadIconLabel);
TopRightLayout - & gt; AddWidget (UpdateHeadBtn);
IntroductionLabel=new QLabel (tr (" personal elucidation: "));
IntroductionTextEdit=new QTextEdit;
CodePudding user response:
How UpdateHeadBtn definition??????