Supose i have a QWidget ...
#-------------------------------------------------
#
# Project created by QtCreator 2013-05-06T14:58:35
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = widget
TEMPLATE = app
SOURCES += main.cpp\
widget.cpp
HEADERS += widget.h
FORMS += widget.ui
#-------------------------------------------------
#
# Project created by QtCreator 2013-05-06T14:58:35
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = widget
TEMPLATE = app
SOURCES += main.cpp\
widget.cpp
HEADERS += widget.h
FORMS += widget.ui
To copy to clipboard, switch view to plain text mode
... and a QMainWindow ...
#-------------------------------------------------
#
# Project created by QtCreator 2013-05-06T15:00:31
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = mainwindow
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
#-------------------------------------------------
#
# Project created by QtCreator 2013-05-06T15:00:31
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = mainwindow
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
To copy to clipboard, switch view to plain text mode
Both were created separately.
Now i want to use the Widget as the centralWidget of the mainwindow.
If i copy the widget folder to the mainwindow folder, what is the next step to integrate them?
Bookmarks