QToolButton * clickedButton=qobject_cast & lt; QToolButton * & gt; (sender ());
.
ChatWidget=new Widget.
ChatWidget - & gt; SetObjectName (IPandPort);
ChatWidget - & gt; SetWindowTitle (clickedButton - & gt; The text ());
ChatWidget - & gt; SetWindowIcon (clickedButton - & gt; Icon ());
ChatWidget - & gt; Show ();
The above for dynamically created window, click the button, create a window, each window different names, need access to the window?
CodePudding user response:
Access to the Internet to find myself a lot of, but is the child controls in the window, and couldn't find if access to the windowCodePudding user response:
Endures QList or QMap maintained in a list