[SOLVED] how to generate dynamic array of buttons????
- for(int i=0;i<10;i++){
- }
- w->setLayout(layout);
- w->show();
[EDIT: code formatting, please wrap in @-tags and indent, Volker]
8 replies
The same topic is discussed here [developer.qt.nokia.com]
Additional nice hints might be layout classes such as QHBoxLayout [doc.qt.nokia.com], QVBoxLayout [doc.qt.nokia.com], etc and you should consider using QSignalMapper [doc.qt.nokia.com] for handling the signals.
and how do we found which button is pressed??thanks
Using signals, as I mentioned in my previous post check class QSignalMapper [doc.qt.nokia.com]
You must log in to post a reply. Not a member yet? Register here!







