Questions tagged «quit»

5
退出Qt程序的正确方法?
我应该如何退出Qt程序,例如在加载数据文件时发现文件损坏,并且用户需要退出该应用程序或重新启动数据文件? 我是不是该: 呼叫 exit(EXIT_FAILURE) 呼叫 QApplication::quit() 呼叫 QCoreApplication::quit() (2)和(3)之间有什么区别?
129 qt  resources  exit  quit 

1
如果--abort不起作用,如何中止交互式变基?
我已经通过交互式资源库陷入混乱,现在我想中止它。(即回到我进入交互式rebase模式之前的位置,以我为例,通过git pull --rebase)。方法似乎是通过git rebase --abort,但这不起作用: $ git rebase --abort error: Ref refs/heads/master is at 55b388c141b1485b1acd9e050dbeb0eb90ef2ee7 but expected b918ac16a33881ce00799bea63d9c23bf7022d67 fatal: Cannot lock the ref 'refs/heads/master'. Could not move back to refs/heads/master 如何摆脱交互式变基模式,并清理所有对此模式的引用?(git reset --hard成功,但不会使我退出重新设置基准的模式。)
127 git  exit  rebase  abort  quit 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.