Skip to content

Declare attributes instead of using "findChild" #23

@cjlcarvalho

Description

@cjlcarvalho

You can manipulate your widgets as attributes in SimulatorGUI.

And avoid the constant use of the "auto" type, because it will be better if you specify the variable type explicitly. A good usage of "auto" happens when you are using multiple templates as in T< X< Y, Z > >.

auto numProcs = this->findChild<QSpinBox *>("nProcesses")->value();

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions