*sigh*
You really should first learn basic syntax and basic concepts of what is an array, and containers of C++.
Qt Code:
Mywidget::Mywidget() { for (int i = 0; i < 5; ++i) { h_layout->addWidget(pButton); } }To copy to clipboard, switch view to plain text mode
Bookmarks