Why does QtGUI not include all GUI elements in Qt 5
c++, qt, qt5
Solution
In `Qt5` most of the previously known as `QtGui` functionality now is being called `QtWidgets`.
So try to write `#include <QtWidgets>`.
Problem
I watched VoidRealm tutorial, and he easily include QtGui and start using it! but i do the same thing and it doesnt work for me! for example my code doesnt know the QWidget until i include QLabel! or all other Gui element... ``` #include <QApplication> #include <QtGui> #include <QtCore> int main(int argc, char *argv[]) { QApplication a(argc, argv); QWidget *win = new QWidget; win->setWindowTitle("MBS"); QGridLayout *gLay = new QGridLayout; QLabel *label1 = new QLabel("Name: "); win->show(); return a.exec(); } ```