Using QApplication with command line arguments

后端 未结 3 507
臣服心动
臣服心动 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:44

    Continue reading that documentation. The set of flags QApplication acts on is listed there.

    Try for example:

    ./qt -style=windows
    

    The arguments that QApplication doesn't deal with are simply left alone. The ones it does process are removed (which is why that function takes non-const arguments).

提交回复
热议问题