Use KToolBarPopupAction::popupMenu() instead of menu()
According to the KF6 documentation of KToolBarPopupAction
, you shouldn't use setMenu
, but without calling it menu()
returns nullptr
According to the KF6 documentation of KToolBarPopupAction
, you shouldn't use setMenu
, but without calling it menu()
returns nullptr