i have been learning qt from video tutorials here. i have completed 35 videos. So i wanted to create a sample application just to understand qt. i am using the latest version of qt creator.
i added some push-buttons & deleted the menu bar & tool bar in main window.
after running i found that if i resize the window scroll-bars don't appear.
i don't want the push-buttons to resize or move. i am fine with them becoming invisible but i want the scroll-bars so that the user can scroll to the invisible parts. i added a scroll area widget but it doesn't work. i did some coding by searching on internet but that didn't work either. when i increase the size of scroll area upto the window size; after running the window appears blank. maybe the push-buttons go 'below' the scroll-area. how do i change which object should be on 'top'?
also since i am just a beginner, i don't know whats the best approach in designing using qt. should i just put the required widgets using designer & then give their characteristics by coding? or should i do complete designing using designer? or should i abandon designer & do the complete coding? THANK YOU!
edit @Synxis, that didnt help much. I even used the secentralwidget(ui->scrollareacontentswidget); i tried deleting the centralwidget QWidget, but i cant. Any solution?
See Question&Answers more detail:os