最开始了解QT的时候,以为窗口的创建是在new那个窗口对象的时候,但了解一些之后才知道,原来不是。直接看下面函数调用过程,可以让你对QT更加了解:
QWidget::show()
||
\/
QWidget::setVisible(bool visible)
||
\/
QWidget::create(WId window, bool initializeWindow, bool destroyOldWindow)
||
\/
QWidgetPrivate::create_sys(WId window, bool initializeWindow, bool destroyOldWindow)
||
\/
QWindow::create()
||
\/
QWindowPrivate::create(bool recursive)
||
\/
QWindowsIntegration::createPlatformWindow(QWindow *window) const
||
\/
QWindowsIntegration::createWindowData(QWindow *window) const
||
\/
QWindowsWindowData::create(const QWindow *w,
const QWindowsWindowData ¶meters,
const QString &title)
||
\/
WindowCreationData::create(const QWindow *w, const WindowData &da