If i even move code and finalize it by this way:


Qt Code:
  1. void MainWindow::on_actionOptions_toggled(bool n)
  2. {
  3. if(n) // hiding or showing widgets by menu
  4. ui->dockWidget_2->show();
  5. else ui->dockWidget_2->hide();
  6. }
  7.  
  8. void MainWindow::on_actionGraph_Options_toggled(bool n)
  9. {
  10. if(n) // hiding or showing widgets by menu
  11. ui->dockWidget->show();
  12. else ui->dockWidget->hide();
  13. }
To copy to clipboard, switch view to plain text mode 

It does not change anything. Still the same problems.