QLabel not giving updated txt
问题 I added a QLabel inside my widget and it is editable through UI, able to set new text also, but not able to retrieve the updated text using function text(); QLabel *m_ColorName = new QLabel("_________"); m_ColorName->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextEditable); In UI i am able to edit to new text but by calling function m_ColorName->text(); Its giving default txt _________ Code H file class CascadeColorHighlightWidgetItem : public QWidget { Q_OBJECT public: