Using QApplication with command line arguments

后端 未结 3 504
臣服心动
臣服心动 2021-01-23 05:54
QApplication::QApplication ( int & argc, char ** argv )

Initializes the window system and constructs an application object

3条回答
  •  孤城傲影
    2021-01-23 06:41

    The arguments passed in the constructor are later accessible through the static method
    QStringList QCoreApplication::arguments(). By this, command line arguments can be handled everywhere in your code.

提交回复
热议问题