GroupBox=new QGroupBox (horizontalLayoutWidget);
GroupBox - & gt; GroupBox setObjectName (QStringLiteral (" "));
VerticalLayout=new QVBoxLayout (groupBox);
VerticalLayout - & gt; SetObjectName (QStringLiteral (" verticalLayout "));
ToolButton=new QToolButton (groupBox);
ToolButton - & gt; ToolButton setObjectName (QStringLiteral (" "));
VerticalLayout - & gt; AddWidget (toolButton);
GroupBox=new QGroupBox (horizontalLayoutWidget);
GroupBox - & gt; GroupBox setObjectName (QStringLiteral (" "));
VerticalLayout=new QVBoxLayout (groupBox);
VerticalLayout - & gt; SetObjectName (QStringLiteral (" verticalLayout "));
ToolButton=new QToolButton ();
ToolButton - & gt; ToolButton setObjectName (QStringLiteral (" "));
VerticalLayout - & gt; AddWidget (toolButton);
New QToolButton () write here don't write pointer will have what differentiation?
CodePudding user response:
Toolbutton not declared, you won't such an error?CodePudding user response: