0
라고있어 작동하지 않습니다Qt는 5.7 QFileDialog 작업은 내가의 FileDialog이 코드 내 메인 창 내부
QAction *actionWithShortcut = new QAction();
actionWithShortcut->setShortcut(Qt::CTRL + Qt::Key_9);
actionWithShortcut->setShortcutContext(Qt::ShortcutContext::WidgetWithChildrenShortcut);
// added this comment to check does it work at list outside filedialog
// addAction(actionWithShortcut);
QFileDialog *fd = new QFileDialog(this);
fd->addAction(actionWithShortcut);
connect(actionWithShortcut, &QAction::triggered, fd, &QFileDialog::reject);
fd->show();
하지만 QFileDialog
에 조치를 추가 할 수 없습니다 또는 어떻게 든 생략 것 같습니다. 어떤 제안? 이미 창 플래그, 옵션 등을 시도했습니다. 해결책을 찾을 수 없습니다.