diff --git a/QCheckBoxDemo/QCheckBoxDemo.pro.user b/QCheckBoxDemo/QCheckBoxDemo.pro.user index cb33e27..51389d3 100644 --- a/QCheckBoxDemo/QCheckBoxDemo.pro.user +++ b/QCheckBoxDemo/QCheckBoxDemo.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId @@ -54,7 +54,17 @@ ProjectExplorer.Project.PluginSettings - + + + true + Builtin.DefaultTidyAndClazy + 2 + + + + true + + ProjectExplorer.Project.Target.0 @@ -293,19 +303,19 @@ 2 - - ProjectExplorer.CustomExecutableRunConfiguration - + Qt4ProjectManager.Qt4RunConfiguration:E:/Qt/Qt_Projects/QCheckBoxDemo/QCheckBoxDemo.pro + E:/Qt/Qt_Projects/QCheckBoxDemo/QCheckBoxDemo.pro false false true + true false false true - + E:/Qt/Qt_Projects/build-QCheckBoxDemo-Desktop_Qt_5_15_0_MinGW_64_bit-Debug 1 diff --git a/QGridLayoutDemo/QGridLayoutDemo.pro.user b/QGridLayoutDemo/QGridLayoutDemo.pro.user index 11a0e93..c7c015b 100644 --- a/QGridLayoutDemo/QGridLayoutDemo.pro.user +++ b/QGridLayoutDemo/QGridLayoutDemo.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId @@ -54,7 +54,17 @@ ProjectExplorer.Project.PluginSettings - + + + true + Builtin.DefaultTidyAndClazy + 2 + + + + true + + ProjectExplorer.Project.Target.0 @@ -293,19 +303,19 @@ 2 - - ProjectExplorer.CustomExecutableRunConfiguration - + Qt4ProjectManager.Qt4RunConfiguration:E:/Qt/Qt_Projects/QGridLayoutDemo/QGridLayoutDemo.pro + E:/Qt/Qt_Projects/QGridLayoutDemo/QGridLayoutDemo.pro false false true + true false false true - + E:/Qt/Qt_Projects/build-QGridLayoutDemo-Desktop_Qt_5_15_0_MinGW_64_bit-Debug 1 diff --git a/QListDemo/QListDemo.pro b/QListDemo/QListDemo.pro new file mode 100644 index 0000000..a0e3fda --- /dev/null +++ b/QListDemo/QListDemo.pro @@ -0,0 +1,23 @@ +QT -= gui + +CONFIG += c++11 console +CONFIG -= app_bundle + +# The following define makes your compiler emit warnings if you use +# any Qt feature that has been marked deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if it uses deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + +SOURCES += \ + main.cpp + +# Default rules for deployment. +qnx: target.path = /tmp/$${TARGET}/bin +else: unix:!android: target.path = /opt/$${TARGET}/bin +!isEmpty(target.path): INSTALLS += target diff --git a/QListDemo/QListDemo.pro.user b/QListDemo/QListDemo.pro.user new file mode 100644 index 0000000..cba0aff --- /dev/null +++ b/QListDemo/QListDemo.pro.user @@ -0,0 +1,325 @@ + + + + + + EnvironmentId + {2597dc8f-55ae-48fb-ad32-e72605fd17e1} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + true + false + 0 + true + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + + ProjectExplorer.Project.Target.0 + + Desktop Qt 5.15.0 MinGW 64-bit + Desktop Qt 5.15.0 MinGW 64-bit + qt.qt5.5150.win64_mingw81_kit + 0 + 0 + 0 + + true + 0 + E:\Qt\Qt_Projects\build-QListDemo-Desktop_Qt_5_15_0_MinGW_64_bit-Debug + E:/Qt/Qt_Projects/build-QListDemo-Desktop_Qt_5_15_0_MinGW_64_bit-Debug + + + true + QtProjectManager.QMakeBuildStep + + false + + + + true + Qt4ProjectManager.MakeStep + + false + + + false + + 2 + Build + Build + ProjectExplorer.BuildSteps.Build + + + + true + Qt4ProjectManager.MakeStep + + true + clean + + false + + 1 + Clean + Clean + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + Qt4ProjectManager.Qt4BuildConfiguration + 2 + 2 + 2 + + + true + 2 + E:\Qt\Qt_Projects\build-QListDemo-Desktop_Qt_5_15_0_MinGW_64_bit-Release + E:/Qt/Qt_Projects/build-QListDemo-Desktop_Qt_5_15_0_MinGW_64_bit-Release + + + true + QtProjectManager.QMakeBuildStep + + false + + + + true + Qt4ProjectManager.MakeStep + + false + + + false + + 2 + Build + Build + ProjectExplorer.BuildSteps.Build + + + + true + Qt4ProjectManager.MakeStep + + true + clean + + false + + 1 + Clean + Clean + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + Qt4ProjectManager.Qt4BuildConfiguration + 0 + 0 + 2 + + + true + 0 + E:\Qt\Qt_Projects\build-QListDemo-Desktop_Qt_5_15_0_MinGW_64_bit-Profile + E:/Qt/Qt_Projects/build-QListDemo-Desktop_Qt_5_15_0_MinGW_64_bit-Profile + + + true + QtProjectManager.QMakeBuildStep + + false + + + + true + Qt4ProjectManager.MakeStep + + false + + + false + + 2 + Build + Build + ProjectExplorer.BuildSteps.Build + + + + true + Qt4ProjectManager.MakeStep + + true + clean + + false + + 1 + Clean + Clean + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Profile + Qt4ProjectManager.Qt4BuildConfiguration + 0 + 0 + 0 + + 3 + + + 0 + Deploy + Deploy + ProjectExplorer.BuildSteps.Deploy + + 1 + + false + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + dwarf + + cpu-cycles + + + 250 + + -e + cpu-cycles + --call-graph + dwarf,4096 + -F + 250 + + -F + true + 4096 + false + false + 1000 + + true + + false + false + false + false + true + 0.01 + 10 + true + kcachegrind + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 2 + + + ProjectExplorer.CustomExecutableRunConfiguration + + + false + + false + true + false + false + true + + + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.FileVersion + 22 + + + Version + 22 + + diff --git a/QListDemo/main.cpp b/QListDemo/main.cpp new file mode 100644 index 0000000..109117d --- /dev/null +++ b/QListDemo/main.cpp @@ -0,0 +1,36 @@ +#include +#include +#include + +int main(int argc, char *argv[]) +{ + QCoreApplication a(argc, argv); + + qDebug() << "Hello!"; + + + QList stringList; + + stringList << " Mumbai " << " New York " << " Berlin "; + + qDebug() << "The first element is " << stringList[0]; + qDebug() << "The second element is " << stringList[1]; + qDebug() << "The third element is " << stringList[2]; + + stringList.append(" Paris "); + stringList.append(" Vienna "); + + qDebug() << "The fourth element is " << stringList[3]; + qDebug() << "The fifth element is " << stringList[4]; + + qDebug() << "The total number of elements in the list are : "<