请指出下面Qt代码是否存在问题?
#include <QtGui/QApplication>
#include <QtGui/QLabel>
#include <QtGui/QWidget>
int main(int argc, char* argv[])
{
QApplication hwApp(argc, argv);
QLabel hwLabel("Hello world");
QWidget window;
hwLabel.setParent(&window);
window.show();
return hwApp.exec();
}
答案在此