How to Design a QTWidget Form using QTCreator at Design Time?
how to Design a QTWidget Form using QTCreator at Design Ti开发者_JS百科me ?
I want to have One QgridLayout with 6 rows and each row can have controls like label,puttons,images etc. and form should be scrollable.
Now my requirement is how to generate buttons at run time and place image,labels on top of that button . Place all the buttons in a grid at run time and that grid can dynamically grow depending on the Seach results provided with a Scroll bar.Pls find attached image above for my requirement. Thanks.
I don't know which version of Qt Creator you're using. Assuming the latest, you may want to go through the Qt Designer Manual.
You can add items using QGridLayout::addWidget() function in a grid layout dynamically.
You can customize QWidgets using Style Sheets.
Also, check Qt Examples and Qt Tutorials. You may find something useful.
Create everything firstly using visual tools like Qt Creator, compile, then copy the code it generated and paste it in your program.
精彩评论