How show QCalendarWidget on signal?

Viewed 20

I want show dateedit calendar after clicked on my button. I try

    QObject::connect(pButton, &GUI::MyButton::clicked, pDateEdit, [pDateEdit]() {
pDateEdit->setCalendarPopup(true);
                pDateEdit->calendarWidget()->show();
                pDateEdit->showNormal();
};

but this dont work

0 Answers
Related