QPushButton's are not clickable inside QFrame
-
Hi i have QGridLayout having two PushButtons.
what i am doing is
QFrame *frame=new QFrame;
frame->setLayout(gridLayout);
frame->setStylesheet("border-width:1px");
Dockwidget ->setWidget(frame);Now inside frame the i am unable to click on PushButtons.
Kindly help.
Thanks
-
Hi,
Can you also show the QPushButton related part ?
-
sure..
m_btn1=new QPushButton("Add");
m_btn1->setMaximumWidth(30);gridLayout->addWidget(m_btn1,0,0);
similarly other button is added at (0,1) position in gridLayout.When i am setting frame border to none then the QPushButtons becomes clickable. Its only when frame border is set the Buttons are losing their cilckable property.
-
Hi,
do you use checkable QPushButtons? I had a similar problem if the buttons were checkable. -
What version of Qt are you using on which OS ?