set visible/invisible is not working for android native QMenubar
Unsolved
Mobile and Embedded
-
I've set the QMenubar to be nativeMenuBar, I want to show/hide it alternatively but it is not working
ui->menuBar->setVisible(false);
but if I set nativeMenuBar to false then I can show/hide it
ui->menuBar->setNativeMenuBar(false);
and then if I set nativeMenuBar to true again then can't hide/display it
Can anyone help out and explain why this is happening?