原创 Linux常用命令

Linux常用命令 Linux常用命令 ar ldd 1. ar   官方解釋:ar - create, modify, and extract from archives   可以理解爲:從壓縮包中創建、修改、提取文件

原创 qt: The build directory needs to be at the same level as the source directory.

qt編譯問題 The build directory needs to be at the same level as the source directory. Projects->General->Build directory 這

原创 Qt::Application::exec does not return exit code from Qt::Application::exit

概念理解不透側導致,我們先看這兩個API在Qt中的含義: void QApplication::exit ( int retcode = 0 ) [靜態]   告訴應用程序退出,伴隨一個返回代碼。在這個函數被調用之後,應用程序離開主事

原创 qwidget:cannot creat a qwidget without qapplication

遇到這種問題一般兩種情況: 有GUI界面:你的代碼中用了QWidget的類,但是你main函數中用的不是QApplication,這個時候只需要將QGuiApplication或者QCoreApplication改爲QApplicati

原创 關於進程線程那點兒事

1、原型:int  pthread_create((pthread_t  *thread,  pthread_attr_t  *attr,  void  *(*start_routine)(void  *),  void  *arg)