qt - Finding the child widget in a group box -


I have a QPushButton object and a QLabel object that is placed in the QGridLayout layout. This QGridLayout is set to a QGroupBox object. How can I recover QPushButton now that exists in this group box effectively? I have tried the following code but it has not returned a valid QPushButton object.

  QGroupBox * grpBox = 0; GrpBox = (QGroupBox *) ui.tableWidget- & gt; Salviddetate (fromRow, 0); QGridLayout * GridLayout = (QGridLayout *) grpBox- & gt; Layout (); QPushButton * btn = Grid layout-> Finding & lt; QPushButton * & gt; ("+");   

Thank you, Rakesh.

Finds exactly what it should have been called on the QGroupBox object.

Comments

Popular posts from this blog

python - Assemble mpeg file unable to play in mediaplayer -

c# - crystal report failed -

mongodb - CakePHP paginator ignoring order, but only for certain values -