Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Quiz::Quiz(QWidget *parent)
- : QWidget(parent)
- {
- /*
- * Make sure the questions are laid out nicely
- */
- QVBoxLayout *myLayout = new QVBoxLayout();
- setLayout(myLayout);
- /*
- * Add the questions
- */
- addQuestions();
- /*
- * Add stretchable vertical spacer at the bottom
- */
- // XXX Why is the cast necessary?!
- myLayout->addStretch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement