contains(QT_CONFIG, opengl)|contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2) {
DEFINES += QT_OPENGL_SUPPORT
- QT += opengl
+ QT += opengl widgets
}
SHARED_FOLDER = ../shared
#include "bookdelegate.h"
-#include <QtGui>
+#include <QtWidgets>
BookDelegate::BookDelegate(QObject *parent)
: QSqlRelationalDelegate(parent), star(QPixmap(":images/star.png"))
SOURCES = bookdelegate.cpp main.cpp bookwindow.cpp
FORMS = bookwindow.ui
-QT += sql
+QT += sql widgets widgets
target.path = $$[QT_INSTALL_DEMOS]/qtbase/books
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro images
#ifndef BOOKWINDOW_H
#define BOOKWINDOW_H
-#include <QtGui>
+#include <QtWidgets>
#include <QtSql>
#include "ui_bookwindow.h"
#include "bookwindow.h"
-#include <QtGui>
+#include <QtWidgets>
int main(int argc, char * argv[])
{
RESOURCES += boxes.qrc
-QT += opengl
+QT += opengl widgets
# install
target.path = $$[QT_INSTALL_DEMOS]/qtbase/boxes
//#include <GL/glew.h>
#include "glextensions.h"
-#include <QtGui>
+#include <QtWidgets>
#include <QtOpenGL>
#define BUFFER_OFFSET(i) ((char*)0 + (i))
//#include <GL/glew.h>
#include "glextensions.h"
-#include <QtGui>
+#include <QtWidgets>
#include <QtOpenGL>
#include "glbuffers.h"
#include "scene.h"
-#include <QtGui>
+#include <QtWidgets>
#include <QGLWidget>
class GraphicsView : public QGraphicsView
#ifndef QTBOX_H
#define QTBOX_H
-#include <QtGui>
+#include <QtWidgets>
#include <QtGui/qvector3d.h>
#include "glbuffers.h"
//#include <GL/glew.h>
#include "glextensions.h"
-#include <QtGui>
+#include <QtWidgets>
#include <QtOpenGL>
#include "gltrianglemesh.h"
//#include <GL/glew.h>
#include "glextensions.h"
-#include <QtGui>
+#include <QtWidgets>
#include <QtOpenGL>
#include "roundedbox.h"
#ifndef TRACKBALL_H
#define TRACKBALL_H
-#include <QtGui>
+#include <QtWidgets>
#include <QtGui/qvector3d.h>
#include <QtGui/qquaternion.h>
#include "chip.h"
-#include <QtGui>
+#include <QtWidgets>
Chip::Chip(const QColor &color, int x, int y)
{
#define CHIP_H
#include <QtGui/QColor>
-#include <QtGui/QGraphicsItem>
+#include <QtWidgets/QGraphicsItem>
class Chip : public QGraphicsItem
{
SOURCES += main.cpp
SOURCES += mainwindow.cpp view.cpp chip.cpp
-contains(QT_CONFIG, opengl):QT += opengl
+contains(QT_CONFIG, opengl):QT += opengl widgets
build_all:!build_pass {
CONFIG -= build_all
#include "view.h"
#include "chip.h"
-#include <QtGui>
+#include <QtWidgets>
MainWindow::MainWindow(QWidget *parent)
: QWidget(parent)
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
-#include <QtGui/qwidget.h>
+#include <QtWidgets/qwidget.h>
QT_FORWARD_DECLARE_CLASS(QGraphicsScene)
QT_FORWARD_DECLARE_CLASS(QGraphicsView)
#include "view.h"
-#include <QtGui>
+#include <QtWidgets>
#ifndef QT_NO_OPENGL
#include <QtOpenGL>
#endif
RESOURCES += composition.qrc
contains(QT_CONFIG, opengl) {
DEFINES += QT_OPENGL_SUPPORT
- QT += opengl
+ QT += opengl widgets
}
# install
contains(QT_CONFIG, opengl) {
DEFINES += QT_OPENGL_SUPPORT
- QT += opengl
+ QT += opengl widgets
}
# install
demos_pathstroke.depends = demos_shared
}
}
+QT += widgets widgets
****************************************************************************/
#include <QtCore>
-#include <QtGui>
+#include <QtWidgets>
class Digits: public QWidget
{
sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
sources.path = $$[QT_INSTALL_DEMOS]/qtbase/embedded/digiflip
INSTALLS += target sources
+QT += widgets widgets
INSTALLS += sources
symbian: CONFIG += qt_demo
+QT += widgets widgets
#include "flickable.h"
#include <QtCore>
-#include <QtGui>
+#include <QtWidgets>
class FlickableTicker: QObject
{
sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
sources.path = $$[QT_INSTALL_DEMOS]/qtbase/embedded/flickable
INSTALLS += target sources
+QT += widgets widgets
****************************************************************************/
#include <QtCore>
-#include <QtGui>
+#include <QtWidgets>
#include "flickable.h"
****************************************************************************/
#include <QtCore>
-#include <QtGui>
+#include <QtWidgets>
#include <QtNetwork>
#include "ui_form.h"
SOURCES = flightinfo.cpp
FORMS += form.ui
RESOURCES = flightinfo.qrc
-QT += network
+QT += network widgets
symbian {
TARGET.UID3 = 0xA000CF74
****************************************************************************/
#include <QtCore>
-#include <QtGui>
+#include <QtWidgets>
#include <QtNetwork>
#include <math.h>
main.cpp \
mapzoom.cpp \
slippymap.cpp
-QT += network
+QT += network widgets
symbian {
TARGET.UID3 = 0xA000CF75
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
#include <QtNetwork>
#include "lightmaps.h"
#include "mapzoom.h"
#include <math.h>
-#include <QtGui>
+#include <QtWidgets>
#include <QtNetwork>
#include "slippymap.h"
****************************************************************************/
#include <QtCore>
-#include <QtGui>
+#include <QtWidgets>
#include <math.h>
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
sources.path = $$[QT_INSTALL_DEMOS]/qtbase/embedded/raycasting
INSTALLS += target sources
+QT += widgets widgets
TARGET.UID3 = 0xA000A63F
CONFIG += qt_demo
}
+QT += widgets widgets
#include "customproxy.h"
-#include <QtGui>
+#include <QtWidgets>
CustomProxy::CustomProxy(QGraphicsItem *parent, Qt::WindowFlags wFlags)
: QGraphicsProxyWidget(parent, wFlags), popupShown(false), currentPopup(0)
#define CUSTOMPROXY_H
#include <QtCore/qtimeline.h>
-#include <QtGui/qgraphicsproxywidget.h>
+#include <QtWidgets/qgraphicsproxywidget.h>
class CustomProxy : public QGraphicsProxyWidget
{
#include "embeddeddialog.h"
#include "ui_embeddeddialog.h"
-#include <QtGui>
+#include <QtWidgets>
EmbeddedDialog::EmbeddedDialog(QWidget *parent)
: QDialog(parent)
#ifndef EMBEDDEDDIALOG_H
#define EMBEDDEDDIALOG_H
-#include <QtGui/qdialog.h>
+#include <QtWidgets/qdialog.h>
QT_FORWARD_DECLARE_CLASS(Ui_embeddedDialog);
INSTALLS += target sources
symbian: CONFIG += qt_demo
+QT += widgets widgets
#include "customproxy.h"
#include "embeddeddialog.h"
-#include <QtGui>
+#include <QtWidgets>
int main(int argc, char *argv[])
{
#include "arthurwidgets.h"
-#include <QtGui>
+#include <QtWidgets>
class HoverPoints;
RESOURCES += gradients.qrc
contains(QT_CONFIG, opengl) {
DEFINES += QT_OPENGL_SUPPORT
- QT += opengl
+ QT += opengl widgets
}
# install
INSTALLS += target sources
symbian: CONFIG += qt_demo
+QT += widgets widgets
#ifndef MACMAINWINDOW_H
#define MACMAINWINDOW_H
-#include <QtGui>
+#include <QtWidgets>
#ifdef Q_WS_MAC
sources.path = $$[QT_INSTALL_DEMOS]/qtbase/macmainwindow
INSTALLS += target sources
}
+QT += widgets widgets
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
#include "macmainwindow.h"
#ifdef Q_WS_MAC
INSTALLS += target sources
symbian: CONFIG += qt_demo
+QT += widgets widgets
#define PATHSTROKE_H
#include "arthurwidgets.h"
-#include <QtGui>
+#include <QtWidgets>
class PathStrokeRenderer : public ArthurFrame
{
contains(QT_CONFIG, opengl) {
DEFINES += QT_OPENGL_SUPPORT
- QT += opengl
+ QT += opengl widgets
}
# install
#ifndef HOVERPOINTS_H
#define HOVERPOINTS_H
-#include <QtGui>
+#include <QtWidgets>
QT_FORWARD_DECLARE_CLASS(QBypassWidget)
contains(QT_CONFIG, opengl)|contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2) {
DEFINES += QT_OPENGL_SUPPORT
- QT += opengl
+ QT += opengl widgets
}
build_all:!build_pass {
CONFIG += release
}
TARGET = demo_shared
-QT += gui-private
+QT += gui-private widgets
SOURCES += \
arthurstyle.cpp\
**
****************************************************************************/
-#include <QtGui/QApplication>
+#include <QtWidgets/QApplication>
#include "spreadsheet.h"
int main(int argc, char** argv) {
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
#include "spreadsheet.h"
#include "spreadsheetdelegate.h"
#include "spreadsheetitem.h"
DEPENDPATH += .
INCLUDEPATH += .
+QT += widgets
CONFIG += qt warn_on
-#unix:contains(QT_CONFIG, dbus):QT += dbus
+#unix:contains(QT_CONFIG, dbus):QT += dbus widgets
# Input
HEADERS += printview.h spreadsheet.h spreadsheetdelegate.h spreadsheetitem.h
****************************************************************************/
#include "spreadsheetdelegate.h"
-#include <QtGui>
+#include <QtWidgets>
SpreadSheetDelegate::SpreadSheetDelegate(QObject *parent)
: QItemDelegate(parent) {}
#define SPREADSHEETITEM_H
#include <QTableWidgetItem>
-#include <QtGui>
+#include <QtWidgets>
#include "spreadsheet.h"
class SpreadSheetItem : public QTableWidgetItem
#include "browser.h"
#include "qsqlconnectiondialog.h"
-#include <QtGui>
+#include <QtWidgets>
#include <QtSql>
Browser::Browser(QWidget *parent)
#include "connectionwidget.h"
-#include <QtGui>
+#include <QtWidgets>
#include <QtSql>
ConnectionWidget::ConnectionWidget(QWidget *parent)
#include "browser.h"
#include <QtCore>
-#include <QtGui>
+#include <QtWidgets>
#include <QtSql>
void addConnectionsFromCommandline(const QStringList &args, Browser *browser)
TEMPLATE = app
TARGET = sqlbrowser
-QT += sql
+QT += sql widgets
HEADERS = browser.h connectionwidget.h qsqlconnectiondialog.h
SOURCES = main.cpp browser.cpp connectionwidget.cpp qsqlconnectiondialog.cpp
#include "graphicsscene.h"
// Qt
-#include <QtGui/QKeyEventTransition>
+#include <QtWidgets/QKeyEventTransition>
static const int MAX_BOMB = 5;
#include <QtCore/QStateMachine>
#include <QtCore/QFinalState>
#include <QtCore/QPauseAnimation>
-#include <QtGui/QAction>
+#include <QtWidgets/QAction>
#include <QtCore/QDir>
-#include <QtGui/QApplication>
-#include <QtGui/QMessageBox>
-#include <QtGui/QGraphicsView>
-#include <QtGui/QGraphicsSceneMouseEvent>
+#include <QtWidgets/QApplication>
+#include <QtWidgets/QMessageBox>
+#include <QtWidgets/QGraphicsView>
+#include <QtWidgets/QGraphicsSceneMouseEvent>
#include <QtCore/QXmlStreamReader>
GraphicsScene::GraphicsScene(int x, int y, int width, int height, Mode mode)
#define __GRAPHICSSCENE__H__
//Qt
-#include <QtGui/QGraphicsScene>
+#include <QtWidgets/QGraphicsScene>
#include <QtCore/QSet>
#include <QtCore/QState>
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
#include "mainwindow.h"
#define __MAINWINDOW__H__
//Qt
-#include <QtGui/QMainWindow>
+#include <QtWidgets/QMainWindow>
class GraphicsScene;
QT_BEGIN_NAMESPACE
class QGraphicsView;
#include "graphicsscene.h"
//Qt
-#include <QtGui/QGraphicsObject>
+#include <QtWidgets/QGraphicsObject>
class PixmapItem : public QGraphicsObject
{
#define PROGRESSITEM_H
//Qt
-#include <QtGui/QGraphicsTextItem>
+#include <QtWidgets/QGraphicsTextItem>
class ProgressItem : public QGraphicsTextItem
{
#include "textinformationitem.h"
//Qt
-#include <QtGui/QMessageBox>
-#include <QtGui/QGraphicsView>
+#include <QtWidgets/QMessageBox>
+#include <QtWidgets/QGraphicsView>
#include <QtCore/QStateMachine>
-#include <QtGui/QKeyEventTransition>
+#include <QtWidgets/QKeyEventTransition>
#include <QtCore/QFinalState>
PlayState::PlayState(GraphicsScene *scene, QState *parent)
#include <QtCore/QState>
#include <QtCore/QSignalTransition>
#include <QtCore/QPropertyAnimation>
-#include <QtGui/QKeyEventTransition>
+#include <QtWidgets/QKeyEventTransition>
#include <QtCore/QSet>
class GraphicsScene;
-contains(QT_CONFIG, opengl):QT += opengl
+contains(QT_CONFIG, opengl):QT += opengl widgets
HEADERS += boat.h \
bomb.h \
mainwindow.h \
#define __SUBMARINE__H__
//Qt
-#include <QtGui/QGraphicsTransform>
+#include <QtWidgets/QGraphicsTransform>
#include "pixmapitem.h"
//Qt
#include <QtCore/QPropertyAnimation>
-#include <QtGui/QGraphicsScene>
+#include <QtWidgets/QGraphicsScene>
//This state is describing when the boat is moving right
class MovementState : public QAnimationState
#define TEXTINFORMATIONITEM_H
//Qt
-#include <QtGui/QGraphicsTextItem>
+#include <QtWidgets/QGraphicsTextItem>
class TextInformationItem : public QGraphicsTextItem
{
INSTALLS += target sources
symbian: CONFIG += qt_demo
+QT += widgets widgets
INSTALLS += target sources
symbian: CONFIG += qt_demo
+QT += widgets