hi,
i want to build a screen for my application that displays a label " Continue" and two push buttons "Yes" and "No".
now yes and no buttons are in horizontal layout.
n i want to make then continue and the horizontal layout (containing push buttons) in a vertical layout.
i am facing following problems
1. i am nt getting how to make the label and horizontalbox layout in a verticalbox layout.
2. i cant set geometry of horizontal layout by placing 4 int values in the parameters like layout->setgeometry(int,int,int,int). it says to put (const qrect &). i m nt getting wat "const qrect & "means.
i am putting my code
Code://------------i have added the two push buttons in the horizontal layout------------------// QHBoxLayout *layout= new QHBoxLayout; layout->setGeometry();//-----------------set geometry aint wrking fr me layout->addWidget(button1); layout->addWidget(button2); //------------------here i want to put the label and layout in vertical layout but it aint wrking fr me QVBoxLayout *layout1 = new QVBoxLayout; layout1->addWidget(label); layout->addLayout(QHBoxLayout:: ); setLayout(layout); layout->setSpacing(200);





