C++ (Qt)act_openMyTask=new QAction(QString::fromLocal8Bit("Открыть задачу"), table_mytask);connect(act_openMyTask, SIGNAL(triggered()), table_mytask, SLOT(openMyTask()));table_mytask->addAction(act_openMyTask);setContextMenuPolicy(Qt::ActionsContextMenu);
C++ (Qt)table_mytask->setContextMenuPolicy(Qt::ActionsContextMenu);
C++ (Qt)int Task_Widget::openMyTask(){ dialog_mytask=new Dialog_MyTask(this); dialog_mytask->show(); return dialog_mytask->exec(); };
C++ (Qt)dialog_mytask=new Dialog_MyTask(this->parentWidget()->parentWidget()->parentWidget()->parentWidget()->parentWidget());