Using QHBoxLayout on the tutorial code