/ Published in: C++
                    
                                        
Un objeto QMenu tiene siempre un objeto QAction, aunque no lo hayas creado tú. Por esta razón si queremos ocultar un QMenu vacÃo no nos sirve llamar al método setHidden (o a setVisible) como normalmente harÃas.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
QMenu *editMenu = new QMenu();
....
editMenu->clear();
editMenu->menuAction()->setVisible(false);
Comments
 Subscribe to comments
                    Subscribe to comments
                
                