First, the function creates the main application object (step 3 in the flowchart). If you specify nil as the third argument to UIApplicationMain() (the default), it will create an instance of UIApplication in this step. This is usually what you want.
运行嵌入式程序 在嵌入式QT版本中,程序需要服务器或自己作为服务器程序.服务器程序构造的方法是构造一个QApplication::GuiServe类型的QApplication对象.或者使用-qws命令选项启动程序. Using a Single Display 使用-qws选项 接下来的程序可以当做客户端来运行,只要不使用-qws选项.那么客户端程序就会自动连接到服务程序中. using Mutiple Displays 嵌入式版本中运行多个县市同时运行.两种方式可以实现,要么多次运行服务程序