├── .qmake.stash ├── IMG ├── 1.png ├── 2.png ├── 3.png ├── 4.png └── 5.png ├── Layout.pro ├── Layout.pro.user ├── Layout.pro.user.4.8-pre1 ├── Layout.pro.user.5ae11b2 ├── Layout.pro.user.b2fb5da ├── Makefile ├── Makefile.Debug ├── Makefile.Release ├── MyDiary.sln ├── MyDiary.vcxproj ├── MyDiary.vcxproj.filters ├── MyDiary.vcxproj.user ├── README.md ├── debug ├── MyDiary.exe ├── MyDiary.ilk ├── MyDiary.log ├── MyDiary.pdb ├── MyDiary.tlog │ ├── CL.command.1.tlog │ ├── CL.read.1.tlog │ ├── CL.write.1.tlog │ ├── MyDiary.lastbuildstate │ ├── custombuild.command.1.tlog │ ├── custombuild.read.1.tlog │ ├── custombuild.write.1.tlog │ ├── link.command.1.tlog │ ├── link.read.1.tlog │ ├── link.write.1.tlog │ ├── rc.command.1.tlog │ ├── rc.read.1.tlog │ └── rc.write.1.tlog ├── detailwindow.o ├── detailwindow.obj ├── diarylog.o ├── diarylog.obj ├── editwindow.o ├── editwindow.obj ├── exe_ico.res ├── exe_ico_res.o ├── images │ ├── IMG_1.png │ ├── IMG_10.png │ ├── IMG_11.png │ ├── IMG_12.png │ ├── IMG_13.png │ ├── IMG_14.png │ ├── IMG_15.jpg │ ├── IMG_16.png │ ├── IMG_2.jpg │ ├── IMG_3.jpeg │ ├── IMG_4.jpg │ ├── IMG_5.jpeg │ ├── IMG_6.png │ ├── IMG_7.gif │ ├── IMG_7.png │ ├── IMG_8.png │ └── IMG_9.jpeg ├── main.o ├── main.obj ├── mainwindow.o ├── mainwindow.obj ├── moc_detailwindow.cpp ├── moc_detailwindow.o ├── moc_detailwindow.obj ├── moc_diarylog.cpp ├── moc_diarylog.o ├── moc_diarylog.obj ├── moc_editwindow.cpp ├── moc_editwindow.o ├── moc_editwindow.obj ├── moc_mainwindow.cpp ├── moc_mainwindow.o ├── moc_mainwindow.obj ├── moc_mytestwindow.cpp ├── moc_mytestwindow.o ├── moc_predefs.h ├── moc_predefs.h.cbt ├── moc_timelistwindow.cpp ├── moc_timelistwindow.o ├── moc_timelistwindow.obj ├── moc_userwindow.cpp ├── moc_userwindow.o ├── moc_userwindow.obj ├── mylabel.obj ├── mytestwindow.o ├── qrc_res.cpp ├── qrc_res.o ├── qrc_res.obj ├── qtDb0.db ├── qtDb1.db ├── qtDb2.db ├── timelistwindow.o ├── timelistwindow.obj ├── userImgAdd.txt ├── userwindow.o ├── userwindow.obj └── vc141.pdb ├── detailwindow.cpp ├── detailwindow.h ├── detailwindow.ui ├── diarylog.cpp ├── diarylog.h ├── diarylog.ui ├── editwindow.cpp ├── editwindow.h ├── editwindow.ui ├── exe_ico.aps ├── exe_ico.ico ├── exe_ico.rc ├── images ├── IMG_1.png ├── IMG_10.png ├── IMG_11.png ├── IMG_12.png ├── IMG_13.png ├── IMG_14.png ├── IMG_15.jpg ├── IMG_16.png ├── IMG_2.jpg ├── IMG_3.jpeg ├── IMG_4.jpg ├── IMG_5.jpeg ├── IMG_6.png ├── IMG_7.gif ├── IMG_7.png ├── IMG_8.png └── IMG_9.jpeg ├── main.cpp ├── mainwindow.cpp ├── mainwindow.h ├── mainwindow.ui ├── object_script.Layout.Debug ├── object_script.Layout.Release ├── object_script.MyDiary.Debug ├── object_script.MyDiary.Release ├── qtDb0.db ├── qtDb1.db ├── qtDb2.db ├── release ├── MyDiary.exe ├── MyDiary.log ├── MyDiary.tlog │ ├── CL.command.1.tlog │ ├── CL.read.1.tlog │ ├── CL.write.1.tlog │ ├── MyDiary.lastbuildstate │ ├── custombuild.command.1.tlog │ ├── custombuild.read.1.tlog │ ├── custombuild.write.1.tlog │ ├── link.command.1.tlog │ ├── link.read.1.tlog │ ├── link.write.1.tlog │ ├── rc.command.1.tlog │ ├── rc.read.1.tlog │ └── rc.write.1.tlog ├── detailwindow.obj ├── diarylog.obj ├── editwindow.obj ├── exe_ico.res ├── main.obj ├── mainwindow.obj ├── moc_detailwindow.cpp ├── moc_detailwindow.obj ├── moc_diarylog.cpp ├── moc_diarylog.obj ├── moc_editwindow.cpp ├── moc_editwindow.obj ├── moc_mainwindow.cpp ├── moc_mainwindow.obj ├── moc_predefs.h ├── moc_timelistwindow.cpp ├── moc_timelistwindow.obj ├── moc_userwindow.cpp ├── moc_userwindow.obj ├── qrc_res.cpp ├── qrc_res.obj ├── qtDb0.db ├── qtDb1.db ├── qtDb2.db ├── timelistwindow.obj ├── userImgAdd.txt └── userwindow.obj ├── res.qrc ├── timelistwidget.h ├── timelistwindow.cpp ├── timelistwindow.h ├── timelistwindow.ui ├── ui_detailwindow.h ├── ui_diarylog.h ├── ui_editwindow.h ├── ui_mainwindow.h ├── ui_timelistwindow.h ├── ui_userwindow.h ├── userImgAdd.txt ├── userwindow.cpp ├── userwindow.h └── userwindow.ui /.qmake.stash: -------------------------------------------------------------------------------- 1 | QMAKE_CXX.QT_COMPILER_STDCXX = 199711L 2 | QMAKE_CXX.QMAKE_MSC_VER = 1916 3 | QMAKE_CXX.QMAKE_MSC_FULL_VER = 191627045 4 | QMAKE_CXX.COMPILER_MACROS = \ 5 | QT_COMPILER_STDCXX \ 6 | QMAKE_MSC_VER \ 7 | QMAKE_MSC_FULL_VER 8 | -------------------------------------------------------------------------------- /IMG/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/IMG/1.png -------------------------------------------------------------------------------- /IMG/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/IMG/2.png -------------------------------------------------------------------------------- /IMG/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/IMG/3.png -------------------------------------------------------------------------------- /IMG/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/IMG/4.png -------------------------------------------------------------------------------- /IMG/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/IMG/5.png -------------------------------------------------------------------------------- /Layout.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2020-10-16T19:49:12 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui\ 8 | sql 9 | 10 | RC_FILE = exe_ico.rc 11 | 12 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 13 | 14 | TARGET = MyDiary 15 | TEMPLATE = app 16 | 17 | 18 | SOURCES += main.cpp\ 19 | mainwindow.cpp \ 20 | userwindow.cpp \ 21 | editwindow.cpp \ 22 | diarylog.cpp \ 23 | detailwindow.cpp \ 24 | timelistwindow.cpp 25 | 26 | HEADERS += mainwindow.h \ 27 | userwindow.h \ 28 | editwindow.h \ 29 | diarylog.h \ 30 | detailwindow.h \ 31 | timelistwindow.h 32 | 33 | FORMS += mainwindow.ui \ 34 | userwindow.ui \ 35 | editwindow.ui \ 36 | diarylog.ui \ 37 | detailwindow.ui \ 38 | timelistwindow.ui 39 | 40 | CONFIG += C++11 41 | 42 | RESOURCES += \ 43 | res.qrc 44 | 45 | DISTFILES += \ 46 | images/IMG_2.jpg 47 | 48 | -------------------------------------------------------------------------------- /Layout.pro.user.4.8-pre1: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | EnvironmentId 7 | {d9ad6f0c-8967-44b6-b3da-ffc44653c14a} 8 | 9 | 10 | ProjectExplorer.Project.ActiveTarget 11 | 0 12 | 13 | 14 | ProjectExplorer.Project.EditorSettings 15 | 16 | true 17 | false 18 | true 19 | 20 | Cpp 21 | 22 | CppGlobal 23 | 24 | 25 | 26 | QmlJS 27 | 28 | QmlJSGlobal 29 | 30 | 31 | 2 32 | GBK 33 | false 34 | 4 35 | false 36 | 80 37 | true 38 | true 39 | 1 40 | true 41 | false 42 | 0 43 | true 44 | 0 45 | 8 46 | false 47 | 1 48 | true 49 | true 50 | true 51 | false 52 | 53 | 54 | 55 | ProjectExplorer.Project.PluginSettings 56 | 57 | 58 | 59 | ProjectExplorer.Project.Target.0 60 | 61 | Desktop Qt 5.5.0 MinGW 32bit 62 | Desktop Qt 5.5.0 MinGW 32bit 63 | qt.55.win32_mingw492_kit 64 | 1 65 | 0 66 | 0 67 | 68 | F:/FilesofPractice/QTpractice/SomeProjectsofMyself/MyDiary 69 | 70 | 71 | true 72 | qmake 73 | 74 | QtProjectManager.QMakeBuildStep 75 | false 76 | true 77 | 78 | false 79 | false 80 | false 81 | 82 | 83 | true 84 | Make 85 | 86 | Qt4ProjectManager.MakeStep 87 | 88 | false 89 | 90 | 91 | 92 | 2 93 | 构建 94 | 95 | ProjectExplorer.BuildSteps.Build 96 | 97 | 98 | 99 | true 100 | Make 101 | 102 | Qt4ProjectManager.MakeStep 103 | 104 | true 105 | clean 106 | 107 | 108 | 1 109 | 清理 110 | 111 | ProjectExplorer.BuildSteps.Clean 112 | 113 | 2 114 | false 115 | 116 | Debug 117 | 118 | Qt4ProjectManager.Qt4BuildConfiguration 119 | 2 120 | true 121 | 122 | 123 | F:/FilesofPractice/QTpractice/SomeProjectsofMyself/MyDiary 124 | 125 | 126 | true 127 | qmake 128 | 129 | QtProjectManager.QMakeBuildStep 130 | false 131 | true 132 | 133 | false 134 | false 135 | false 136 | 137 | 138 | true 139 | Make 140 | 141 | Qt4ProjectManager.MakeStep 142 | 143 | false 144 | 145 | 146 | 147 | 2 148 | 构建 149 | 150 | ProjectExplorer.BuildSteps.Build 151 | 152 | 153 | 154 | true 155 | Make 156 | 157 | Qt4ProjectManager.MakeStep 158 | 159 | true 160 | clean 161 | 162 | 163 | 1 164 | 清理 165 | 166 | ProjectExplorer.BuildSteps.Clean 167 | 168 | 2 169 | false 170 | 171 | Release 172 | 173 | Qt4ProjectManager.Qt4BuildConfiguration 174 | 0 175 | true 176 | 177 | 2 178 | 179 | 180 | 0 181 | 部署 182 | 183 | ProjectExplorer.BuildSteps.Deploy 184 | 185 | 1 186 | 在本地部署 187 | 188 | ProjectExplorer.DefaultDeployConfiguration 189 | 190 | 1 191 | 192 | 193 | 194 | false 195 | false 196 | false 197 | false 198 | true 199 | 0.01 200 | 10 201 | true 202 | 1 203 | 25 204 | 205 | 1 206 | true 207 | false 208 | true 209 | valgrind 210 | 211 | 0 212 | 1 213 | 2 214 | 3 215 | 4 216 | 5 217 | 6 218 | 7 219 | 8 220 | 9 221 | 10 222 | 11 223 | 12 224 | 13 225 | 14 226 | 227 | 2 228 | 229 | Layout 230 | Layout2 231 | Qt4ProjectManager.Qt4RunConfiguration:F:/FilesofPractice/QTpractice/SomeProjectsofMyself/MyDiary/Layout.pro 232 | 233 | Layout.pro 234 | false 235 | false 236 | 237 | 3768 238 | false 239 | true 240 | false 241 | false 242 | true 243 | 244 | 1 245 | 246 | 247 | 248 | ProjectExplorer.Project.TargetCount 249 | 1 250 | 251 | 252 | ProjectExplorer.Project.Updater.FileVersion 253 | 18 254 | 255 | 256 | Version 257 | 18 258 | 259 | 260 | -------------------------------------------------------------------------------- /Layout.pro.user.b2fb5da: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | EnvironmentId 7 | {b2fb5da9-3dba-4ff5-802a-16b63e43900d} 8 | 9 | 10 | ProjectExplorer.Project.ActiveTarget 11 | 0 12 | 13 | 14 | ProjectExplorer.Project.EditorSettings 15 | 16 | true 17 | false 18 | true 19 | 20 | Cpp 21 | 22 | CppGlobal 23 | 24 | 25 | 26 | QmlJS 27 | 28 | QmlJSGlobal 29 | 30 | 31 | 2 32 | UTF-8 33 | false 34 | 4 35 | false 36 | 80 37 | true 38 | true 39 | 1 40 | true 41 | false 42 | 0 43 | true 44 | 0 45 | 8 46 | true 47 | 1 48 | true 49 | true 50 | true 51 | false 52 | 53 | 54 | 55 | ProjectExplorer.Project.PluginSettings 56 | 57 | 58 | 59 | ProjectExplorer.Project.Target.0 60 | 61 | Desktop Qt 5.5.0 MinGW 32bit 62 | Desktop Qt 5.5.0 MinGW 32bit 63 | qt.55.win32_mingw492_kit 64 | 1 65 | 0 66 | 0 67 | 68 | F:/FilesofPractice/QTpractice/SomeProjectsofMyself/MyDiary 69 | 70 | 71 | true 72 | qmake 73 | 74 | QtProjectManager.QMakeBuildStep 75 | false 76 | true 77 | 78 | false 79 | false 80 | false 81 | 82 | 83 | true 84 | Make 85 | 86 | Qt4ProjectManager.MakeStep 87 | 88 | false 89 | 90 | 91 | 92 | 2 93 | 构建 94 | 95 | ProjectExplorer.BuildSteps.Build 96 | 97 | 98 | 99 | true 100 | Make 101 | 102 | Qt4ProjectManager.MakeStep 103 | 104 | true 105 | clean 106 | 107 | 108 | 1 109 | 清理 110 | 111 | ProjectExplorer.BuildSteps.Clean 112 | 113 | 2 114 | false 115 | 116 | Debug 117 | 118 | Qt4ProjectManager.Qt4BuildConfiguration 119 | 2 120 | true 121 | 122 | 123 | F:/FilesofPractice/QTpractice/SomeProjectsofMyself/MyDiary 124 | 125 | 126 | true 127 | qmake 128 | 129 | QtProjectManager.QMakeBuildStep 130 | false 131 | true 132 | 133 | false 134 | false 135 | false 136 | 137 | 138 | true 139 | Make 140 | 141 | Qt4ProjectManager.MakeStep 142 | 143 | false 144 | 145 | 146 | 147 | 2 148 | 构建 149 | 150 | ProjectExplorer.BuildSteps.Build 151 | 152 | 153 | 154 | true 155 | Make 156 | 157 | Qt4ProjectManager.MakeStep 158 | 159 | true 160 | clean 161 | 162 | 163 | 1 164 | 清理 165 | 166 | ProjectExplorer.BuildSteps.Clean 167 | 168 | 2 169 | false 170 | 171 | Release 172 | 173 | Qt4ProjectManager.Qt4BuildConfiguration 174 | 0 175 | true 176 | 177 | 2 178 | 179 | 180 | 0 181 | 部署 182 | 183 | ProjectExplorer.BuildSteps.Deploy 184 | 185 | 1 186 | 在本地部署 187 | 188 | ProjectExplorer.DefaultDeployConfiguration 189 | 190 | 1 191 | 192 | 193 | 194 | false 195 | false 196 | false 197 | false 198 | true 199 | 0.01 200 | 10 201 | true 202 | 1 203 | 25 204 | 205 | 1 206 | true 207 | false 208 | true 209 | valgrind 210 | 211 | 0 212 | 1 213 | 2 214 | 3 215 | 4 216 | 5 217 | 6 218 | 7 219 | 8 220 | 9 221 | 10 222 | 11 223 | 12 224 | 13 225 | 14 226 | 227 | 2 228 | 229 | Layout 230 | Layout2 231 | Qt4ProjectManager.Qt4RunConfiguration:F:/FilesofPractice/QTpractice/SomeProjectsofMyself/MyDiary/Layout.pro 232 | 233 | Layout.pro 234 | false 235 | false 236 | 237 | 3768 238 | false 239 | true 240 | false 241 | false 242 | true 243 | 244 | 1 245 | 246 | 247 | 248 | ProjectExplorer.Project.TargetCount 249 | 1 250 | 251 | 252 | ProjectExplorer.Project.Updater.FileVersion 253 | 18 254 | 255 | 256 | Version 257 | 18 258 | 259 | 260 | -------------------------------------------------------------------------------- /MyDiary.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.28307.1500 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MyDiary", "MyDiary.vcxproj", "{970D5DA5-C6F0-3499-81C6-24D67A202F0D}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Release|x64 = Release|x64 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {970D5DA5-C6F0-3499-81C6-24D67A202F0D}.Debug|x64.ActiveCfg = Debug|x64 15 | {970D5DA5-C6F0-3499-81C6-24D67A202F0D}.Debug|x64.Build.0 = Debug|x64 16 | {970D5DA5-C6F0-3499-81C6-24D67A202F0D}.Release|x64.ActiveCfg = Release|x64 17 | {970D5DA5-C6F0-3499-81C6-24D67A202F0D}.Release|x64.Build.0 = Release|x64 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {7323BCD5-3198-48D6-ADEC-19B992833D00} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /MyDiary.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {99349809-55BA-4b9d-BF79-8FDBB0286EB3} 6 | ui 7 | false 8 | 9 | 10 | {99349809-55BA-4b9d-BF79-8FDBB0286EB3} 11 | ui 12 | false 13 | 14 | 15 | {71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11} 16 | cpp;c;cxx;moc;h;def;odl;idl;res; 17 | 18 | 19 | {71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11} 20 | cpp;c;cxx;moc;h;def;odl;idl;res; 21 | 22 | 23 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 24 | h;hpp;hxx;hm;inl;inc;xsd 25 | 26 | 27 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 28 | h;hpp;hxx;hm;inl;inc;xsd 29 | 30 | 31 | {D9D6E242-F8AF-46E4-B9FD-80ECBC20BA3E} 32 | qrc;* 33 | false 34 | 35 | 36 | {D9D6E242-F8AF-46E4-B9FD-80ECBC20BA3E} 37 | qrc;* 38 | false 39 | 40 | 41 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 42 | cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx 43 | 44 | 45 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 46 | cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx 47 | 48 | 49 | {B83CAF91-C7BF-462F-B76C-EA11631F866C} 50 | * 51 | false 52 | 53 | 54 | {B83CAF91-C7BF-462F-B76C-EA11631F866C} 55 | * 56 | false 57 | 58 | 59 | 60 | 61 | Source Files 62 | 63 | 64 | Source Files 65 | 66 | 67 | Source Files 68 | 69 | 70 | Source Files 71 | 72 | 73 | Source Files 74 | 75 | 76 | Source Files 77 | 78 | 79 | Source Files 80 | 81 | 82 | 83 | 84 | Header Files 85 | 86 | 87 | Header Files 88 | 89 | 90 | Header Files 91 | 92 | 93 | Header Files 94 | 95 | 96 | Header Files 97 | 98 | 99 | Header Files 100 | 101 | 102 | 103 | 104 | Generated Files 105 | 106 | 107 | Generated Files 108 | 109 | 110 | Generated Files 111 | 112 | 113 | Generated Files 114 | 115 | 116 | Generated Files 117 | 118 | 119 | Generated Files 120 | 121 | 122 | Generated Files 123 | 124 | 125 | Generated Files 126 | 127 | 128 | Generated Files 129 | 130 | 131 | Generated Files 132 | 133 | 134 | Generated Files 135 | 136 | 137 | Generated Files 138 | 139 | 140 | Generated Files 141 | 142 | 143 | Generated Files 144 | 145 | 146 | Generated Files 147 | 148 | 149 | Generated Files 150 | 151 | 152 | Generated Files 153 | 154 | 155 | Generated Files 156 | 157 | 158 | Generated Files 159 | 160 | 161 | Generated Files 162 | 163 | 164 | Generated Files 165 | 166 | 167 | Generated Files 168 | 169 | 170 | 171 | 172 | Form Files 173 | 174 | 175 | Form Files 176 | 177 | 178 | Form Files 179 | 180 | 181 | Form Files 182 | 183 | 184 | Form Files 185 | 186 | 187 | Form Files 188 | 189 | 190 | 191 | 192 | Resource Files 193 | 194 | 195 | Resource Files 196 | 197 | 198 | Resource Files 199 | 200 | 201 | Resource Files 202 | 203 | 204 | Resource Files 205 | 206 | 207 | Resource Files 208 | 209 | 210 | Resource Files 211 | 212 | 213 | Resource Files 214 | 215 | 216 | Resource Files 217 | 218 | 219 | Resource Files 220 | 221 | 222 | Resource Files 223 | 224 | 225 | Resource Files 226 | 227 | 228 | Resource Files 229 | 230 | 231 | Resource Files 232 | 233 | 234 | Resource Files 235 | 236 | 237 | Resource Files 238 | 239 | 240 | Resource Files 241 | 242 | 243 | 244 | 245 | 246 | 247 | Distribution Files 248 | 249 | 250 | 251 | 252 | 253 | -------------------------------------------------------------------------------- /MyDiary.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | PATH=D:\software\QT\5.12.10\msvc2017_64\bin%3b$(PATH) 5 | 6 | 7 | PATH=D:\software\QT\5.12.10\msvc2017_64\bin%3b$(PATH) 8 | 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # QT日记项目 2 | 3 | ## 登陆界面 4 | 5 | ![1](IMG/1.png) 6 | 7 | ## 用户主界面 8 | 9 | ![2](IMG/2.png) 10 | 11 | ## 编辑界面 12 | 13 | ![3](IMG/3.png) 14 | 15 | ## 时间记录 16 | 17 | ![4](IMG/4.png) 18 | 19 | ## 日记查看界面 20 | 21 | ![5](IMG/5.png) 22 | 23 | # 相关技术网址 24 | 25 | https://blog.csdn.net/weixin_43145941/article/details/109559455 26 | 27 | 但当前repo的内容是最新的。 -------------------------------------------------------------------------------- /debug/MyDiary.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/MyDiary.exe -------------------------------------------------------------------------------- /debug/MyDiary.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/MyDiary.ilk -------------------------------------------------------------------------------- /debug/MyDiary.log: -------------------------------------------------------------------------------- 1 |  userwindow.cpp 2 | e:\filesofpractice\qtpractice\someprojectsofmyself\mydiary_vs\mainwindow.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 3 | e:\filesofpractice\qtpractice\someprojectsofmyself\mydiary_vs\editwindow.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 4 | MyDiary.vcxproj -> E:\FilesofPractice\QTpractice\SomeProjectsofMyself\MyDiary_vs\debug\MyDiary.exe 5 | -------------------------------------------------------------------------------- /debug/MyDiary.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/MyDiary.pdb -------------------------------------------------------------------------------- /debug/MyDiary.tlog/CL.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/MyDiary.tlog/CL.command.1.tlog -------------------------------------------------------------------------------- /debug/MyDiary.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/MyDiary.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /debug/MyDiary.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/MyDiary.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /debug/MyDiary.tlog/MyDiary.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.17763.0 2 | Debug|x64|E:\FilesofPractice\QTpractice\SomeProjectsofMyself\MyDiary_vs\| 3 | -------------------------------------------------------------------------------- /debug/MyDiary.tlog/custombuild.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/MyDiary.tlog/custombuild.command.1.tlog -------------------------------------------------------------------------------- /debug/MyDiary.tlog/custombuild.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/MyDiary.tlog/custombuild.read.1.tlog -------------------------------------------------------------------------------- /debug/MyDiary.tlog/custombuild.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/MyDiary.tlog/custombuild.write.1.tlog -------------------------------------------------------------------------------- /debug/MyDiary.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/MyDiary.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /debug/MyDiary.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/MyDiary.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /debug/MyDiary.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/MyDiary.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /debug/MyDiary.tlog/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/MyDiary.tlog/rc.command.1.tlog -------------------------------------------------------------------------------- /debug/MyDiary.tlog/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/MyDiary.tlog/rc.read.1.tlog -------------------------------------------------------------------------------- /debug/MyDiary.tlog/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/MyDiary.tlog/rc.write.1.tlog -------------------------------------------------------------------------------- /debug/detailwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/detailwindow.o -------------------------------------------------------------------------------- /debug/detailwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/detailwindow.obj -------------------------------------------------------------------------------- /debug/diarylog.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/diarylog.o -------------------------------------------------------------------------------- /debug/diarylog.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/diarylog.obj -------------------------------------------------------------------------------- /debug/editwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/editwindow.o -------------------------------------------------------------------------------- /debug/editwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/editwindow.obj -------------------------------------------------------------------------------- /debug/exe_ico.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/exe_ico.res -------------------------------------------------------------------------------- /debug/exe_ico_res.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/exe_ico_res.o -------------------------------------------------------------------------------- /debug/images/IMG_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/images/IMG_1.png -------------------------------------------------------------------------------- /debug/images/IMG_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/images/IMG_10.png -------------------------------------------------------------------------------- /debug/images/IMG_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/images/IMG_11.png -------------------------------------------------------------------------------- /debug/images/IMG_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/images/IMG_12.png -------------------------------------------------------------------------------- /debug/images/IMG_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/images/IMG_13.png -------------------------------------------------------------------------------- /debug/images/IMG_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/images/IMG_14.png -------------------------------------------------------------------------------- /debug/images/IMG_15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/images/IMG_15.jpg -------------------------------------------------------------------------------- /debug/images/IMG_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/images/IMG_16.png -------------------------------------------------------------------------------- /debug/images/IMG_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/images/IMG_2.jpg -------------------------------------------------------------------------------- /debug/images/IMG_3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/images/IMG_3.jpeg -------------------------------------------------------------------------------- /debug/images/IMG_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/images/IMG_4.jpg -------------------------------------------------------------------------------- /debug/images/IMG_5.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/images/IMG_5.jpeg -------------------------------------------------------------------------------- /debug/images/IMG_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/images/IMG_6.png -------------------------------------------------------------------------------- /debug/images/IMG_7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/images/IMG_7.gif -------------------------------------------------------------------------------- /debug/images/IMG_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/images/IMG_7.png -------------------------------------------------------------------------------- /debug/images/IMG_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/images/IMG_8.png -------------------------------------------------------------------------------- /debug/images/IMG_9.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/images/IMG_9.jpeg -------------------------------------------------------------------------------- /debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/main.o -------------------------------------------------------------------------------- /debug/main.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/main.obj -------------------------------------------------------------------------------- /debug/mainwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/mainwindow.o -------------------------------------------------------------------------------- /debug/mainwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/mainwindow.obj -------------------------------------------------------------------------------- /debug/moc_detailwindow.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'detailwindow.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.10) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include "../detailwindow.h" 10 | #include 11 | #include 12 | #if !defined(Q_MOC_OUTPUT_REVISION) 13 | #error "The header file 'detailwindow.h' doesn't include ." 14 | #elif Q_MOC_OUTPUT_REVISION != 67 15 | #error "This file was generated using the moc from 5.12.10. It" 16 | #error "cannot be used with the include files from this version of Qt." 17 | #error "(The moc has changed too much.)" 18 | #endif 19 | 20 | QT_BEGIN_MOC_NAMESPACE 21 | QT_WARNING_PUSH 22 | QT_WARNING_DISABLE_DEPRECATED 23 | struct qt_meta_stringdata_DetailWindow_t { 24 | QByteArrayData data[1]; 25 | char stringdata0[13]; 26 | }; 27 | #define QT_MOC_LITERAL(idx, ofs, len) \ 28 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 29 | qptrdiff(offsetof(qt_meta_stringdata_DetailWindow_t, stringdata0) + ofs \ 30 | - idx * sizeof(QByteArrayData)) \ 31 | ) 32 | static const qt_meta_stringdata_DetailWindow_t qt_meta_stringdata_DetailWindow = { 33 | { 34 | QT_MOC_LITERAL(0, 0, 12) // "DetailWindow" 35 | 36 | }, 37 | "DetailWindow" 38 | }; 39 | #undef QT_MOC_LITERAL 40 | 41 | static const uint qt_meta_data_DetailWindow[] = { 42 | 43 | // content: 44 | 8, // revision 45 | 0, // classname 46 | 0, 0, // classinfo 47 | 0, 0, // methods 48 | 0, 0, // properties 49 | 0, 0, // enums/sets 50 | 0, 0, // constructors 51 | 0, // flags 52 | 0, // signalCount 53 | 54 | 0 // eod 55 | }; 56 | 57 | void DetailWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 58 | { 59 | Q_UNUSED(_o); 60 | Q_UNUSED(_id); 61 | Q_UNUSED(_c); 62 | Q_UNUSED(_a); 63 | } 64 | 65 | QT_INIT_METAOBJECT const QMetaObject DetailWindow::staticMetaObject = { { 66 | &QWidget::staticMetaObject, 67 | qt_meta_stringdata_DetailWindow.data, 68 | qt_meta_data_DetailWindow, 69 | qt_static_metacall, 70 | nullptr, 71 | nullptr 72 | } }; 73 | 74 | 75 | const QMetaObject *DetailWindow::metaObject() const 76 | { 77 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 78 | } 79 | 80 | void *DetailWindow::qt_metacast(const char *_clname) 81 | { 82 | if (!_clname) return nullptr; 83 | if (!strcmp(_clname, qt_meta_stringdata_DetailWindow.stringdata0)) 84 | return static_cast(this); 85 | return QWidget::qt_metacast(_clname); 86 | } 87 | 88 | int DetailWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 89 | { 90 | _id = QWidget::qt_metacall(_c, _id, _a); 91 | return _id; 92 | } 93 | QT_WARNING_POP 94 | QT_END_MOC_NAMESPACE 95 | -------------------------------------------------------------------------------- /debug/moc_detailwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/moc_detailwindow.o -------------------------------------------------------------------------------- /debug/moc_detailwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/moc_detailwindow.obj -------------------------------------------------------------------------------- /debug/moc_diarylog.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'diarylog.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.10) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include "../diarylog.h" 10 | #include 11 | #include 12 | #if !defined(Q_MOC_OUTPUT_REVISION) 13 | #error "The header file 'diarylog.h' doesn't include ." 14 | #elif Q_MOC_OUTPUT_REVISION != 67 15 | #error "This file was generated using the moc from 5.12.10. It" 16 | #error "cannot be used with the include files from this version of Qt." 17 | #error "(The moc has changed too much.)" 18 | #endif 19 | 20 | QT_BEGIN_MOC_NAMESPACE 21 | QT_WARNING_PUSH 22 | QT_WARNING_DISABLE_DEPRECATED 23 | struct qt_meta_stringdata_DiaryLog_t { 24 | QByteArrayData data[3]; 25 | char stringdata0[23]; 26 | }; 27 | #define QT_MOC_LITERAL(idx, ofs, len) \ 28 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 29 | qptrdiff(offsetof(qt_meta_stringdata_DiaryLog_t, stringdata0) + ofs \ 30 | - idx * sizeof(QByteArrayData)) \ 31 | ) 32 | static const qt_meta_stringdata_DiaryLog_t qt_meta_stringdata_DiaryLog = { 33 | { 34 | QT_MOC_LITERAL(0, 0, 8), // "DiaryLog" 35 | QT_MOC_LITERAL(1, 9, 12), // "deleteSignal" 36 | QT_MOC_LITERAL(2, 22, 0) // "" 37 | 38 | }, 39 | "DiaryLog\0deleteSignal\0" 40 | }; 41 | #undef QT_MOC_LITERAL 42 | 43 | static const uint qt_meta_data_DiaryLog[] = { 44 | 45 | // content: 46 | 8, // revision 47 | 0, // classname 48 | 0, 0, // classinfo 49 | 1, 14, // methods 50 | 0, 0, // properties 51 | 0, 0, // enums/sets 52 | 0, 0, // constructors 53 | 0, // flags 54 | 1, // signalCount 55 | 56 | // signals: name, argc, parameters, tag, flags 57 | 1, 0, 19, 2, 0x06 /* Public */, 58 | 59 | // signals: parameters 60 | QMetaType::Void, 61 | 62 | 0 // eod 63 | }; 64 | 65 | void DiaryLog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 66 | { 67 | if (_c == QMetaObject::InvokeMetaMethod) { 68 | auto *_t = static_cast(_o); 69 | Q_UNUSED(_t) 70 | switch (_id) { 71 | case 0: _t->deleteSignal(); break; 72 | default: ; 73 | } 74 | } else if (_c == QMetaObject::IndexOfMethod) { 75 | int *result = reinterpret_cast(_a[0]); 76 | { 77 | using _t = void (DiaryLog::*)(); 78 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DiaryLog::deleteSignal)) { 79 | *result = 0; 80 | return; 81 | } 82 | } 83 | } 84 | Q_UNUSED(_a); 85 | } 86 | 87 | QT_INIT_METAOBJECT const QMetaObject DiaryLog::staticMetaObject = { { 88 | &QWidget::staticMetaObject, 89 | qt_meta_stringdata_DiaryLog.data, 90 | qt_meta_data_DiaryLog, 91 | qt_static_metacall, 92 | nullptr, 93 | nullptr 94 | } }; 95 | 96 | 97 | const QMetaObject *DiaryLog::metaObject() const 98 | { 99 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 100 | } 101 | 102 | void *DiaryLog::qt_metacast(const char *_clname) 103 | { 104 | if (!_clname) return nullptr; 105 | if (!strcmp(_clname, qt_meta_stringdata_DiaryLog.stringdata0)) 106 | return static_cast(this); 107 | return QWidget::qt_metacast(_clname); 108 | } 109 | 110 | int DiaryLog::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 111 | { 112 | _id = QWidget::qt_metacall(_c, _id, _a); 113 | if (_id < 0) 114 | return _id; 115 | if (_c == QMetaObject::InvokeMetaMethod) { 116 | if (_id < 1) 117 | qt_static_metacall(this, _c, _id, _a); 118 | _id -= 1; 119 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 120 | if (_id < 1) 121 | *reinterpret_cast(_a[0]) = -1; 122 | _id -= 1; 123 | } 124 | return _id; 125 | } 126 | 127 | // SIGNAL 0 128 | void DiaryLog::deleteSignal() 129 | { 130 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); 131 | } 132 | QT_WARNING_POP 133 | QT_END_MOC_NAMESPACE 134 | -------------------------------------------------------------------------------- /debug/moc_diarylog.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/moc_diarylog.o -------------------------------------------------------------------------------- /debug/moc_diarylog.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/moc_diarylog.obj -------------------------------------------------------------------------------- /debug/moc_editwindow.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'editwindow.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.10) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include "../editwindow.h" 10 | #include 11 | #include 12 | #if !defined(Q_MOC_OUTPUT_REVISION) 13 | #error "The header file 'editwindow.h' doesn't include ." 14 | #elif Q_MOC_OUTPUT_REVISION != 67 15 | #error "This file was generated using the moc from 5.12.10. It" 16 | #error "cannot be used with the include files from this version of Qt." 17 | #error "(The moc has changed too much.)" 18 | #endif 19 | 20 | QT_BEGIN_MOC_NAMESPACE 21 | QT_WARNING_PUSH 22 | QT_WARNING_DISABLE_DEPRECATED 23 | struct qt_meta_stringdata_EditWindow_t { 24 | QByteArrayData data[3]; 25 | char stringdata0[23]; 26 | }; 27 | #define QT_MOC_LITERAL(idx, ofs, len) \ 28 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 29 | qptrdiff(offsetof(qt_meta_stringdata_EditWindow_t, stringdata0) + ofs \ 30 | - idx * sizeof(QByteArrayData)) \ 31 | ) 32 | static const qt_meta_stringdata_EditWindow_t qt_meta_stringdata_EditWindow = { 33 | { 34 | QT_MOC_LITERAL(0, 0, 10), // "EditWindow" 35 | QT_MOC_LITERAL(1, 11, 10), // "saveSignal" 36 | QT_MOC_LITERAL(2, 22, 0) // "" 37 | 38 | }, 39 | "EditWindow\0saveSignal\0" 40 | }; 41 | #undef QT_MOC_LITERAL 42 | 43 | static const uint qt_meta_data_EditWindow[] = { 44 | 45 | // content: 46 | 8, // revision 47 | 0, // classname 48 | 0, 0, // classinfo 49 | 1, 14, // methods 50 | 0, 0, // properties 51 | 0, 0, // enums/sets 52 | 0, 0, // constructors 53 | 0, // flags 54 | 1, // signalCount 55 | 56 | // signals: name, argc, parameters, tag, flags 57 | 1, 0, 19, 2, 0x06 /* Public */, 58 | 59 | // signals: parameters 60 | QMetaType::Void, 61 | 62 | 0 // eod 63 | }; 64 | 65 | void EditWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 66 | { 67 | if (_c == QMetaObject::InvokeMetaMethod) { 68 | auto *_t = static_cast(_o); 69 | Q_UNUSED(_t) 70 | switch (_id) { 71 | case 0: _t->saveSignal(); break; 72 | default: ; 73 | } 74 | } else if (_c == QMetaObject::IndexOfMethod) { 75 | int *result = reinterpret_cast(_a[0]); 76 | { 77 | using _t = void (EditWindow::*)(); 78 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&EditWindow::saveSignal)) { 79 | *result = 0; 80 | return; 81 | } 82 | } 83 | } 84 | Q_UNUSED(_a); 85 | } 86 | 87 | QT_INIT_METAOBJECT const QMetaObject EditWindow::staticMetaObject = { { 88 | &QMainWindow::staticMetaObject, 89 | qt_meta_stringdata_EditWindow.data, 90 | qt_meta_data_EditWindow, 91 | qt_static_metacall, 92 | nullptr, 93 | nullptr 94 | } }; 95 | 96 | 97 | const QMetaObject *EditWindow::metaObject() const 98 | { 99 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 100 | } 101 | 102 | void *EditWindow::qt_metacast(const char *_clname) 103 | { 104 | if (!_clname) return nullptr; 105 | if (!strcmp(_clname, qt_meta_stringdata_EditWindow.stringdata0)) 106 | return static_cast(this); 107 | return QMainWindow::qt_metacast(_clname); 108 | } 109 | 110 | int EditWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 111 | { 112 | _id = QMainWindow::qt_metacall(_c, _id, _a); 113 | if (_id < 0) 114 | return _id; 115 | if (_c == QMetaObject::InvokeMetaMethod) { 116 | if (_id < 1) 117 | qt_static_metacall(this, _c, _id, _a); 118 | _id -= 1; 119 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 120 | if (_id < 1) 121 | *reinterpret_cast(_a[0]) = -1; 122 | _id -= 1; 123 | } 124 | return _id; 125 | } 126 | 127 | // SIGNAL 0 128 | void EditWindow::saveSignal() 129 | { 130 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); 131 | } 132 | QT_WARNING_POP 133 | QT_END_MOC_NAMESPACE 134 | -------------------------------------------------------------------------------- /debug/moc_editwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/moc_editwindow.o -------------------------------------------------------------------------------- /debug/moc_editwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/moc_editwindow.obj -------------------------------------------------------------------------------- /debug/moc_mainwindow.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'mainwindow.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.10) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include "../mainwindow.h" 10 | #include 11 | #include 12 | #if !defined(Q_MOC_OUTPUT_REVISION) 13 | #error "The header file 'mainwindow.h' doesn't include ." 14 | #elif Q_MOC_OUTPUT_REVISION != 67 15 | #error "This file was generated using the moc from 5.12.10. It" 16 | #error "cannot be used with the include files from this version of Qt." 17 | #error "(The moc has changed too much.)" 18 | #endif 19 | 20 | QT_BEGIN_MOC_NAMESPACE 21 | QT_WARNING_PUSH 22 | QT_WARNING_DISABLE_DEPRECATED 23 | struct qt_meta_stringdata_MainWindow_t { 24 | QByteArrayData data[1]; 25 | char stringdata0[11]; 26 | }; 27 | #define QT_MOC_LITERAL(idx, ofs, len) \ 28 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 29 | qptrdiff(offsetof(qt_meta_stringdata_MainWindow_t, stringdata0) + ofs \ 30 | - idx * sizeof(QByteArrayData)) \ 31 | ) 32 | static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = { 33 | { 34 | QT_MOC_LITERAL(0, 0, 10) // "MainWindow" 35 | 36 | }, 37 | "MainWindow" 38 | }; 39 | #undef QT_MOC_LITERAL 40 | 41 | static const uint qt_meta_data_MainWindow[] = { 42 | 43 | // content: 44 | 8, // revision 45 | 0, // classname 46 | 0, 0, // classinfo 47 | 0, 0, // methods 48 | 0, 0, // properties 49 | 0, 0, // enums/sets 50 | 0, 0, // constructors 51 | 0, // flags 52 | 0, // signalCount 53 | 54 | 0 // eod 55 | }; 56 | 57 | void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 58 | { 59 | Q_UNUSED(_o); 60 | Q_UNUSED(_id); 61 | Q_UNUSED(_c); 62 | Q_UNUSED(_a); 63 | } 64 | 65 | QT_INIT_METAOBJECT const QMetaObject MainWindow::staticMetaObject = { { 66 | &QMainWindow::staticMetaObject, 67 | qt_meta_stringdata_MainWindow.data, 68 | qt_meta_data_MainWindow, 69 | qt_static_metacall, 70 | nullptr, 71 | nullptr 72 | } }; 73 | 74 | 75 | const QMetaObject *MainWindow::metaObject() const 76 | { 77 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 78 | } 79 | 80 | void *MainWindow::qt_metacast(const char *_clname) 81 | { 82 | if (!_clname) return nullptr; 83 | if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0)) 84 | return static_cast(this); 85 | return QMainWindow::qt_metacast(_clname); 86 | } 87 | 88 | int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 89 | { 90 | _id = QMainWindow::qt_metacall(_c, _id, _a); 91 | return _id; 92 | } 93 | QT_WARNING_POP 94 | QT_END_MOC_NAMESPACE 95 | -------------------------------------------------------------------------------- /debug/moc_mainwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/moc_mainwindow.o -------------------------------------------------------------------------------- /debug/moc_mainwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/moc_mainwindow.obj -------------------------------------------------------------------------------- /debug/moc_mytestwindow.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'mytestwindow.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.0) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include "../mytestwindow.h" 10 | #include 11 | #include 12 | #if !defined(Q_MOC_OUTPUT_REVISION) 13 | #error "The header file 'mytestwindow.h' doesn't include ." 14 | #elif Q_MOC_OUTPUT_REVISION != 67 15 | #error "This file was generated using the moc from 5.5.0. It" 16 | #error "cannot be used with the include files from this version of Qt." 17 | #error "(The moc has changed too much.)" 18 | #endif 19 | 20 | QT_BEGIN_MOC_NAMESPACE 21 | struct qt_meta_stringdata_MyTestWindow_t { 22 | QByteArrayData data[3]; 23 | char stringdata0[25]; 24 | }; 25 | #define QT_MOC_LITERAL(idx, ofs, len) \ 26 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 27 | qptrdiff(offsetof(qt_meta_stringdata_MyTestWindow_t, stringdata0) + ofs \ 28 | - idx * sizeof(QByteArrayData)) \ 29 | ) 30 | static const qt_meta_stringdata_MyTestWindow_t qt_meta_stringdata_MyTestWindow = { 31 | { 32 | QT_MOC_LITERAL(0, 0, 12), // "MyTestWindow" 33 | QT_MOC_LITERAL(1, 13, 10), // "chooseBack" 34 | QT_MOC_LITERAL(2, 24, 0) // "" 35 | 36 | }, 37 | "MyTestWindow\0chooseBack\0" 38 | }; 39 | #undef QT_MOC_LITERAL 40 | 41 | static const uint qt_meta_data_MyTestWindow[] = { 42 | 43 | // content: 44 | 7, // revision 45 | 0, // classname 46 | 0, 0, // classinfo 47 | 1, 14, // methods 48 | 0, 0, // properties 49 | 0, 0, // enums/sets 50 | 0, 0, // constructors 51 | 0, // flags 52 | 1, // signalCount 53 | 54 | // signals: name, argc, parameters, tag, flags 55 | 1, 0, 19, 2, 0x06 /* Public */, 56 | 57 | // signals: parameters 58 | QMetaType::Void, 59 | 60 | 0 // eod 61 | }; 62 | 63 | void MyTestWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 64 | { 65 | if (_c == QMetaObject::InvokeMetaMethod) { 66 | MyTestWindow *_t = static_cast(_o); 67 | Q_UNUSED(_t) 68 | switch (_id) { 69 | case 0: _t->chooseBack(); break; 70 | default: ; 71 | } 72 | } else if (_c == QMetaObject::IndexOfMethod) { 73 | int *result = reinterpret_cast(_a[0]); 74 | void **func = reinterpret_cast(_a[1]); 75 | { 76 | typedef void (MyTestWindow::*_t)(); 77 | if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MyTestWindow::chooseBack)) { 78 | *result = 0; 79 | } 80 | } 81 | } 82 | Q_UNUSED(_a); 83 | } 84 | 85 | const QMetaObject MyTestWindow::staticMetaObject = { 86 | { &QMainWindow::staticMetaObject, qt_meta_stringdata_MyTestWindow.data, 87 | qt_meta_data_MyTestWindow, qt_static_metacall, Q_NULLPTR, Q_NULLPTR} 88 | }; 89 | 90 | 91 | const QMetaObject *MyTestWindow::metaObject() const 92 | { 93 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 94 | } 95 | 96 | void *MyTestWindow::qt_metacast(const char *_clname) 97 | { 98 | if (!_clname) return Q_NULLPTR; 99 | if (!strcmp(_clname, qt_meta_stringdata_MyTestWindow.stringdata0)) 100 | return static_cast(const_cast< MyTestWindow*>(this)); 101 | return QMainWindow::qt_metacast(_clname); 102 | } 103 | 104 | int MyTestWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 105 | { 106 | _id = QMainWindow::qt_metacall(_c, _id, _a); 107 | if (_id < 0) 108 | return _id; 109 | if (_c == QMetaObject::InvokeMetaMethod) { 110 | if (_id < 1) 111 | qt_static_metacall(this, _c, _id, _a); 112 | _id -= 1; 113 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 114 | if (_id < 1) 115 | *reinterpret_cast(_a[0]) = -1; 116 | _id -= 1; 117 | } 118 | return _id; 119 | } 120 | 121 | // SIGNAL 0 122 | void MyTestWindow::chooseBack() 123 | { 124 | QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR); 125 | } 126 | QT_END_MOC_NAMESPACE 127 | -------------------------------------------------------------------------------- /debug/moc_mytestwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/moc_mytestwindow.o -------------------------------------------------------------------------------- /debug/moc_predefs.h: -------------------------------------------------------------------------------- 1 | #define _MSC_EXTENSIONS 2 | #define _INTEGRAL_MAX_BITS 64 3 | #define _MSC_VER 1916 4 | #define _MSC_FULL_VER 191627045 5 | #define _MSC_BUILD 0 6 | #define _M_AMD64 100 7 | #define _M_X64 100 8 | #define _WIN64 9 | #define _WIN32 10 | #define _CPPRTTI 11 | #define _DEBUG 12 | #define _MT 13 | #define _DLL 14 | -------------------------------------------------------------------------------- /debug/moc_predefs.h.cbt: -------------------------------------------------------------------------------- 1 | This is a dummy file needed to create debug/moc_predefs.h 2 | -------------------------------------------------------------------------------- /debug/moc_timelistwindow.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'timelistwindow.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.10) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include "../timelistwindow.h" 10 | #include 11 | #include 12 | #if !defined(Q_MOC_OUTPUT_REVISION) 13 | #error "The header file 'timelistwindow.h' doesn't include ." 14 | #elif Q_MOC_OUTPUT_REVISION != 67 15 | #error "This file was generated using the moc from 5.12.10. It" 16 | #error "cannot be used with the include files from this version of Qt." 17 | #error "(The moc has changed too much.)" 18 | #endif 19 | 20 | QT_BEGIN_MOC_NAMESPACE 21 | QT_WARNING_PUSH 22 | QT_WARNING_DISABLE_DEPRECATED 23 | struct qt_meta_stringdata_TimeListWindow_t { 24 | QByteArrayData data[1]; 25 | char stringdata0[15]; 26 | }; 27 | #define QT_MOC_LITERAL(idx, ofs, len) \ 28 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 29 | qptrdiff(offsetof(qt_meta_stringdata_TimeListWindow_t, stringdata0) + ofs \ 30 | - idx * sizeof(QByteArrayData)) \ 31 | ) 32 | static const qt_meta_stringdata_TimeListWindow_t qt_meta_stringdata_TimeListWindow = { 33 | { 34 | QT_MOC_LITERAL(0, 0, 14) // "TimeListWindow" 35 | 36 | }, 37 | "TimeListWindow" 38 | }; 39 | #undef QT_MOC_LITERAL 40 | 41 | static const uint qt_meta_data_TimeListWindow[] = { 42 | 43 | // content: 44 | 8, // revision 45 | 0, // classname 46 | 0, 0, // classinfo 47 | 0, 0, // methods 48 | 0, 0, // properties 49 | 0, 0, // enums/sets 50 | 0, 0, // constructors 51 | 0, // flags 52 | 0, // signalCount 53 | 54 | 0 // eod 55 | }; 56 | 57 | void TimeListWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 58 | { 59 | Q_UNUSED(_o); 60 | Q_UNUSED(_id); 61 | Q_UNUSED(_c); 62 | Q_UNUSED(_a); 63 | } 64 | 65 | QT_INIT_METAOBJECT const QMetaObject TimeListWindow::staticMetaObject = { { 66 | &QWidget::staticMetaObject, 67 | qt_meta_stringdata_TimeListWindow.data, 68 | qt_meta_data_TimeListWindow, 69 | qt_static_metacall, 70 | nullptr, 71 | nullptr 72 | } }; 73 | 74 | 75 | const QMetaObject *TimeListWindow::metaObject() const 76 | { 77 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 78 | } 79 | 80 | void *TimeListWindow::qt_metacast(const char *_clname) 81 | { 82 | if (!_clname) return nullptr; 83 | if (!strcmp(_clname, qt_meta_stringdata_TimeListWindow.stringdata0)) 84 | return static_cast(this); 85 | return QWidget::qt_metacast(_clname); 86 | } 87 | 88 | int TimeListWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 89 | { 90 | _id = QWidget::qt_metacall(_c, _id, _a); 91 | return _id; 92 | } 93 | QT_WARNING_POP 94 | QT_END_MOC_NAMESPACE 95 | -------------------------------------------------------------------------------- /debug/moc_timelistwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/moc_timelistwindow.o -------------------------------------------------------------------------------- /debug/moc_timelistwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/moc_timelistwindow.obj -------------------------------------------------------------------------------- /debug/moc_userwindow.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'userwindow.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.10) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include "../userwindow.h" 10 | #include 11 | #include 12 | #if !defined(Q_MOC_OUTPUT_REVISION) 13 | #error "The header file 'userwindow.h' doesn't include ." 14 | #elif Q_MOC_OUTPUT_REVISION != 67 15 | #error "This file was generated using the moc from 5.12.10. It" 16 | #error "cannot be used with the include files from this version of Qt." 17 | #error "(The moc has changed too much.)" 18 | #endif 19 | 20 | QT_BEGIN_MOC_NAMESPACE 21 | QT_WARNING_PUSH 22 | QT_WARNING_DISABLE_DEPRECATED 23 | struct qt_meta_stringdata_UserWindow_t { 24 | QByteArrayData data[3]; 25 | char stringdata0[29]; 26 | }; 27 | #define QT_MOC_LITERAL(idx, ofs, len) \ 28 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 29 | qptrdiff(offsetof(qt_meta_stringdata_UserWindow_t, stringdata0) + ofs \ 30 | - idx * sizeof(QByteArrayData)) \ 31 | ) 32 | static const qt_meta_stringdata_UserWindow_t qt_meta_stringdata_UserWindow = { 33 | { 34 | QT_MOC_LITERAL(0, 0, 10), // "UserWindow" 35 | QT_MOC_LITERAL(1, 11, 16), // "ChooseBackSignal" 36 | QT_MOC_LITERAL(2, 28, 0) // "" 37 | 38 | }, 39 | "UserWindow\0ChooseBackSignal\0" 40 | }; 41 | #undef QT_MOC_LITERAL 42 | 43 | static const uint qt_meta_data_UserWindow[] = { 44 | 45 | // content: 46 | 8, // revision 47 | 0, // classname 48 | 0, 0, // classinfo 49 | 1, 14, // methods 50 | 0, 0, // properties 51 | 0, 0, // enums/sets 52 | 0, 0, // constructors 53 | 0, // flags 54 | 1, // signalCount 55 | 56 | // signals: name, argc, parameters, tag, flags 57 | 1, 0, 19, 2, 0x06 /* Public */, 58 | 59 | // signals: parameters 60 | QMetaType::Void, 61 | 62 | 0 // eod 63 | }; 64 | 65 | void UserWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 66 | { 67 | if (_c == QMetaObject::InvokeMetaMethod) { 68 | auto *_t = static_cast(_o); 69 | Q_UNUSED(_t) 70 | switch (_id) { 71 | case 0: _t->ChooseBackSignal(); break; 72 | default: ; 73 | } 74 | } else if (_c == QMetaObject::IndexOfMethod) { 75 | int *result = reinterpret_cast(_a[0]); 76 | { 77 | using _t = void (UserWindow::*)(); 78 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&UserWindow::ChooseBackSignal)) { 79 | *result = 0; 80 | return; 81 | } 82 | } 83 | } 84 | Q_UNUSED(_a); 85 | } 86 | 87 | QT_INIT_METAOBJECT const QMetaObject UserWindow::staticMetaObject = { { 88 | &QMainWindow::staticMetaObject, 89 | qt_meta_stringdata_UserWindow.data, 90 | qt_meta_data_UserWindow, 91 | qt_static_metacall, 92 | nullptr, 93 | nullptr 94 | } }; 95 | 96 | 97 | const QMetaObject *UserWindow::metaObject() const 98 | { 99 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 100 | } 101 | 102 | void *UserWindow::qt_metacast(const char *_clname) 103 | { 104 | if (!_clname) return nullptr; 105 | if (!strcmp(_clname, qt_meta_stringdata_UserWindow.stringdata0)) 106 | return static_cast(this); 107 | return QMainWindow::qt_metacast(_clname); 108 | } 109 | 110 | int UserWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 111 | { 112 | _id = QMainWindow::qt_metacall(_c, _id, _a); 113 | if (_id < 0) 114 | return _id; 115 | if (_c == QMetaObject::InvokeMetaMethod) { 116 | if (_id < 1) 117 | qt_static_metacall(this, _c, _id, _a); 118 | _id -= 1; 119 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 120 | if (_id < 1) 121 | *reinterpret_cast(_a[0]) = -1; 122 | _id -= 1; 123 | } 124 | return _id; 125 | } 126 | 127 | // SIGNAL 0 128 | void UserWindow::ChooseBackSignal() 129 | { 130 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); 131 | } 132 | QT_WARNING_POP 133 | QT_END_MOC_NAMESPACE 134 | -------------------------------------------------------------------------------- /debug/moc_userwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/moc_userwindow.o -------------------------------------------------------------------------------- /debug/moc_userwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/moc_userwindow.obj -------------------------------------------------------------------------------- /debug/mylabel.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/mylabel.obj -------------------------------------------------------------------------------- /debug/mytestwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/mytestwindow.o -------------------------------------------------------------------------------- /debug/qrc_res.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/qrc_res.o -------------------------------------------------------------------------------- /debug/qrc_res.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/qrc_res.obj -------------------------------------------------------------------------------- /debug/qtDb0.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/qtDb0.db -------------------------------------------------------------------------------- /debug/qtDb1.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/qtDb1.db -------------------------------------------------------------------------------- /debug/qtDb2.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/qtDb2.db -------------------------------------------------------------------------------- /debug/timelistwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/timelistwindow.o -------------------------------------------------------------------------------- /debug/timelistwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/timelistwindow.obj -------------------------------------------------------------------------------- /debug/userImgAdd.txt: -------------------------------------------------------------------------------- 1 | 1 :/images/IMG_12.png 2 | ZYunfei E:/FilesofPractice/QTpractice/SomeProjectsofMyself/MyDiary_vs/images/IMG_11.png 3 | NBY :/images/IMG_13.png -------------------------------------------------------------------------------- /debug/userwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/userwindow.o -------------------------------------------------------------------------------- /debug/userwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/userwindow.obj -------------------------------------------------------------------------------- /debug/vc141.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/debug/vc141.pdb -------------------------------------------------------------------------------- /detailwindow.cpp: -------------------------------------------------------------------------------- 1 | #include "detailwindow.h" 2 | #include "ui_detailwindow.h" 3 | 4 | DetailWindow::DetailWindow(QString diary,QString time,QString pointSize,QString family,QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::DetailWindow) 7 | { 8 | ui->setupUi(this); 9 | 10 | 11 | QFont font; 12 | font.setFamily(family); 13 | font.setPointSize(pointSize.toInt()); 14 | ui->textBrowser->setFont(font); 15 | 16 | ui->textBrowser->setText(diary); 17 | ui->timeEdit->setText(time); 18 | 19 | 20 | this->setWindowTitle(QString::fromLocal8Bit("Detail")); 21 | } 22 | 23 | DetailWindow::~DetailWindow() 24 | { 25 | delete ui; 26 | } 27 | -------------------------------------------------------------------------------- /detailwindow.h: -------------------------------------------------------------------------------- 1 | #ifndef DETAILWINDOW_H 2 | #define DETAILWINDOW_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class DetailWindow; 8 | } 9 | 10 | class DetailWindow : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit DetailWindow(QString diary,QString time,QString pointSize,QString family,QWidget *parent = 0); 16 | ~DetailWindow(); 17 | 18 | private: 19 | Ui::DetailWindow *ui; 20 | }; 21 | 22 | #endif // DETAILWINDOW_H 23 | -------------------------------------------------------------------------------- /detailwindow.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | DetailWindow 4 | 5 | 6 | 7 | 0 8 | 0 9 | 411 10 | 330 11 | 12 | 13 | 14 | 15 | 411 16 | 330 17 | 18 | 19 | 20 | 21 | 411 22 | 330 23 | 24 | 25 | 26 | Form 27 | 28 | 29 | 30 | 31 | 10 32 | 40 33 | 391 34 | 281 35 | 36 | 37 | 38 | false 39 | 40 | 41 | background-image: url(:/images/IMG_15.jpg); 42 | 43 | 44 | 45 | 46 | 47 | 110 48 | 10 49 | 211 50 | 21 51 | 52 | 53 | 54 | 55 | 黑体 56 | 57 | 58 | 59 | Qt::AlignCenter 60 | 61 | 62 | true 63 | 64 | 65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /diarylog.cpp: -------------------------------------------------------------------------------- 1 | #include "diarylog.h" 2 | #include "ui_diarylog.h" 3 | #include 4 | #include 5 | 6 | DiaryLog::DiaryLog(QString diary,QString time,QString pointSize,QString family,QString userName, 7 | mapm,QWidget *parent) : 8 | QWidget(parent), 9 | ui(new Ui::DiaryLog) 10 | { 11 | ui->setupUi(this); 12 | this->proLabel = ui->portraitLabel; 13 | 14 | //加载头像 15 | QPixmap tmpPix; 16 | tmpPix.load(QString::fromStdString(m[userName.toStdString()])); 17 | ui->portraitLabel->setScaledContents(true); 18 | ui->portraitLabel->setPixmap(tmpPix); 19 | 20 | //将editwindow的信息书写在diarylog上 21 | QFont font; 22 | font.setFamily(family); 23 | font.setPointSize(pointSize.toInt()); 24 | ui->textBrowser->setFont(font); 25 | ui->timeLabel->setText(time); 26 | ui->textBrowser->setText(diary); 27 | 28 | 29 | 30 | //删除某一条diarylog 31 | connect(ui->deleteButton,&QPushButton::clicked,[=](){ 32 | databaseInit(userName); 33 | QSqlQuery query(db); 34 | QString deleteString = QString("%1%2%3").arg("'").arg(time).arg("'"); //我思考这行代码思考了20分钟,数据库删除对比的信息如果是字符串要的是单引号! 35 | bool flag = query.exec(QString("DELETE FROM person WHERE time = %1").arg(deleteString)); 36 | qDebug()<deleteSignal(); 39 | delete this; //删除userwindow中的日记框 40 | }); 41 | 42 | 43 | //进入一条日记的详情 44 | connect(ui->detailButton,&QPushButton::clicked,[=](){ 45 | detailWindow = new DetailWindow(diary,time,pointSize,family); 46 | detailWindow->show(); 47 | QPropertyAnimation *pPosAnimation3 = new QPropertyAnimation(detailWindow, "pos"); //添加动画 48 | pPosAnimation3->setDuration(550); 49 | pPosAnimation3->setStartValue(QPoint(parent->x(),parent->y())); 50 | pPosAnimation3->setEndValue(QPoint(parent->x()+parent->width(),parent->y())); 51 | pPosAnimation3->setEasingCurve(QEasingCurve::InOutQuad); 52 | pPosAnimation3->start(); 53 | }); 54 | } 55 | void DiaryLog::databaseInit(QString str) 56 | { 57 | int i; 58 | if(str == "ZYunfei") {i = 0;} 59 | if(str == "1") {i = 1;} 60 | if(str == "NBY") {i = 2;} 61 | db = QSqlDatabase::addDatabase("QSQLITE", QString("myDiary%1").arg(i)); 62 | db.setDatabaseName(QString(".//qtDb%1.db").arg(i)); 63 | if( !db.open()) //这个db.open相当关键啊!没这一步后面写数据可失败。 64 | { 65 | qDebug() << "无法建立数据库连接"; 66 | } 67 | else 68 | { 69 | qDebug()<<"数据库连接成功"; 70 | } 71 | } 72 | 73 | DiaryLog::~DiaryLog() 74 | { 75 | qDebug()<<"diarylog析构函数执行"; 76 | delete ui; 77 | } 78 | -------------------------------------------------------------------------------- /diarylog.h: -------------------------------------------------------------------------------- 1 | #ifndef DIARYLOG_H 2 | #define DIARYLOG_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include "detailwindow.h" 9 | #include "userwindow.h" 10 | #include 11 | #include 12 | 13 | namespace Ui { 14 | class DiaryLog; 15 | } 16 | using namespace std; 17 | class DiaryLog : public QWidget 18 | { 19 | Q_OBJECT 20 | friend class UserWindow; 21 | public: 22 | explicit DiaryLog(QString diary,QString time,QString pointSize,QString family,QString userName, 23 | map,QWidget *parent = 0); 24 | ~DiaryLog(); 25 | 26 | void databaseInit(QString str); 27 | QSqlDatabase db; 28 | 29 | DetailWindow * detailWindow = NULL; 30 | QLabel * proLabel = NULL; 31 | Ui::DiaryLog *ui; 32 | signals: 33 | void deleteSignal(void); 34 | 35 | private: 36 | 37 | 38 | }; 39 | 40 | #endif // DIARYLOG_H 41 | -------------------------------------------------------------------------------- /diarylog.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | DiaryLog 4 | 5 | 6 | 7 | 0 8 | 0 9 | 350 10 | 130 11 | 12 | 13 | 14 | 15 | 350 16 | 130 17 | 18 | 19 | 20 | 21 | 350 22 | 130 23 | 24 | 25 | 26 | 27 | 9 28 | 29 | 30 | 31 | Form 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 110 40 | 10 41 | 161 42 | 21 43 | 44 | 45 | 46 | 47 | 161 48 | 21 49 | 50 | 51 | 52 | 53 | 161 54 | 21 55 | 56 | 57 | 58 | 59 | 黑体 60 | 61 | 62 | 63 | TextLabel 64 | 65 | 66 | 67 | 68 | 69 | 90 70 | 40 71 | 205 72 | 81 73 | 74 | 75 | 76 | 77 | 205 78 | 81 79 | 80 | 81 | 82 | 83 | 205 84 | 81 85 | 86 | 87 | 88 | 89 | Arial 90 | 91 | 92 | 93 | 94 | 95 | 96 | QFrame::StyledPanel 97 | 98 | 99 | QFrame::Raised 100 | 101 | 102 | 4 103 | 104 | 105 | 106 | 107 | 108 | 310 109 | 50 110 | 30 111 | 30 112 | 113 | 114 | 115 | 116 | 30 117 | 30 118 | 119 | 120 | 121 | 122 | 30 123 | 30 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | :/images/IMG_9.jpeg:/images/IMG_9.jpeg 132 | 133 | 134 | true 135 | 136 | 137 | 138 | 139 | 140 | 20 141 | 50 142 | 50 143 | 50 144 | 145 | 146 | 147 | 148 | 50 149 | 50 150 | 151 | 152 | 153 | 154 | 50 155 | 50 156 | 157 | 158 | 159 | TextLabel 160 | 161 | 162 | 163 | 164 | 165 | 310 166 | 80 167 | 30 168 | 30 169 | 170 | 171 | 172 | 173 | 30 174 | 30 175 | 176 | 177 | 178 | 179 | 30 180 | 30 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | :/images/IMG_1.png:/images/IMG_1.png 189 | 190 | 191 | true 192 | 193 | 194 | 195 | 196 | 197 | 198 | -------------------------------------------------------------------------------- /editwindow.cpp: -------------------------------------------------------------------------------- 1 | #include "editwindow.h" 2 | #include "ui_editwindow.h" 3 | #include 4 | #include 5 | #include 6 | 7 | EditWindow::EditWindow(QWidget *parent) : 8 | QMainWindow(parent), 9 | ui(new Ui::EditWindow) 10 | { 11 | ui->setupUi(this); 12 | 13 | //光标自动定位到文本编辑栏 14 | ui->textEdit->setFocus(); 15 | 16 | //初始化字体 17 | font = (ui->fontComboBox->currentFont()); 18 | font.setPointSize(ui->comboBox->currentText().toInt()); 19 | ui->textEdit->setFont(font); 20 | 21 | //字体风格监控 22 | connect(ui->fontComboBox,&QFontComboBox::currentFontChanged,[=](){ 23 | font = (ui->fontComboBox->currentFont()); 24 | ui->textEdit->setFont(font); 25 | }); 26 | 27 | //字体大小监控 28 | connect(ui->comboBox,&QComboBox::currentTextChanged,[=](){ 29 | font.setPointSize(ui->comboBox->currentText().toInt()); 30 | ui->textEdit->setFont(font); 31 | }); 32 | 33 | 34 | //保存按钮 35 | connect(ui->saveButton,&QToolButton::clicked,[=](){ 36 | diary = ui->textEdit->toPlainText(); //获取书写的日记内容 37 | emit this->saveSignal(); //发出保存信号 38 | }); 39 | 40 | //返回上一级按钮 41 | connect(ui->actionBack,&QAction::triggered,[=](){ 42 | this->close(); 43 | }); 44 | } 45 | 46 | void EditWindow::paintEvent(QPaintEvent *) 47 | { 48 | QPainter painter(this); 49 | QPixmap pix; 50 | pix.load(":/images/IMG_5.jpeg"); 51 | painter.drawPixmap(0,0,this->width(),this->height(),pix); 52 | } 53 | 54 | void EditWindow::keyPressEvent(QKeyEvent * event) 55 | { 56 | switch (event->key()) 57 | { 58 | case Qt::Key_Return: //回车按下激活保存按钮 59 | emit ui->saveButton->clicked(); 60 | break; 61 | } 62 | } 63 | 64 | EditWindow::~EditWindow() 65 | { 66 | delete ui; 67 | } 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /editwindow.h: -------------------------------------------------------------------------------- 1 | #ifndef EDITWINDOW_H 2 | #define EDITWINDOW_H 3 | 4 | #include 5 | #include 6 | 7 | namespace Ui { 8 | class EditWindow; 9 | } 10 | 11 | class EditWindow : public QMainWindow 12 | { 13 | Q_OBJECT 14 | 15 | public: 16 | explicit EditWindow(QWidget *parent = 0); 17 | ~EditWindow(); 18 | 19 | void paintEvent(QPaintEvent *); 20 | void keyPressEvent(QKeyEvent *); //重写回车,当回车按下时激活保存按钮信号 21 | 22 | QString diary; //日记文本 23 | QFont font; //字体记录 24 | signals: 25 | void saveSignal(void); //保存信号 26 | 27 | private: 28 | Ui::EditWindow *ui; 29 | }; 30 | 31 | #endif // EDITWINDOW_H 32 | -------------------------------------------------------------------------------- /editwindow.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | EditWindow 4 | 5 | 6 | 7 | 0 8 | 0 9 | 600 10 | 400 11 | 12 | 13 | 14 | 15 | 0 16 | 0 17 | 18 | 19 | 20 | 21 | 600 22 | 400 23 | 24 | 25 | 26 | 日记编辑 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | false 37 | 38 | 39 | 华文楷体 40 | 41 | 42 | 234 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 30 51 | 30 52 | 53 | 54 | 55 | 56 | 30 57 | 30 58 | 59 | 60 | 61 | 62 | 63 | 64 | :/images/IMG_6.png 65 | 66 | 67 | true 68 | 69 | 70 | 71 | 72 | 73 | 74 | 5 75 | 76 | 77 | 78 | 6 79 | 80 | 81 | 82 | 83 | 7 84 | 85 | 86 | 87 | 88 | 8 89 | 90 | 91 | 92 | 93 | 9 94 | 95 | 96 | 97 | 98 | 10 99 | 100 | 101 | 102 | 103 | 11 104 | 105 | 106 | 107 | 108 | 12 109 | 110 | 111 | 112 | 113 | 13 114 | 115 | 116 | 117 | 118 | 14 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 30 128 | 30 129 | 130 | 131 | 132 | 133 | 30 134 | 30 135 | 136 | 137 | 138 | ... 139 | 140 | 141 | 142 | :/images/IMG_4.jpg:/images/IMG_4.jpg 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 0 158 | 0 159 | 600 160 | 26 161 | 162 | 163 | 164 | 165 | 开始 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 返回上一级 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | -------------------------------------------------------------------------------- /exe_ico.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/exe_ico.aps -------------------------------------------------------------------------------- /exe_ico.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/exe_ico.ico -------------------------------------------------------------------------------- /exe_ico.rc: -------------------------------------------------------------------------------- 1 | IDI_ICON1 ICON DISCARDABLE "exe_ico.ico" -------------------------------------------------------------------------------- /images/IMG_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/images/IMG_1.png -------------------------------------------------------------------------------- /images/IMG_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/images/IMG_10.png -------------------------------------------------------------------------------- /images/IMG_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/images/IMG_11.png -------------------------------------------------------------------------------- /images/IMG_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/images/IMG_12.png -------------------------------------------------------------------------------- /images/IMG_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/images/IMG_13.png -------------------------------------------------------------------------------- /images/IMG_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/images/IMG_14.png -------------------------------------------------------------------------------- /images/IMG_15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/images/IMG_15.jpg -------------------------------------------------------------------------------- /images/IMG_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/images/IMG_16.png -------------------------------------------------------------------------------- /images/IMG_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/images/IMG_2.jpg -------------------------------------------------------------------------------- /images/IMG_3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/images/IMG_3.jpeg -------------------------------------------------------------------------------- /images/IMG_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/images/IMG_4.jpg -------------------------------------------------------------------------------- /images/IMG_5.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/images/IMG_5.jpeg -------------------------------------------------------------------------------- /images/IMG_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/images/IMG_6.png -------------------------------------------------------------------------------- /images/IMG_7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/images/IMG_7.gif -------------------------------------------------------------------------------- /images/IMG_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/images/IMG_7.png -------------------------------------------------------------------------------- /images/IMG_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/images/IMG_8.png -------------------------------------------------------------------------------- /images/IMG_9.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/images/IMG_9.jpeg -------------------------------------------------------------------------------- /main.cpp: -------------------------------------------------------------------------------- 1 | #include "mainwindow.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | MainWindow w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /mainwindow.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/mainwindow.cpp -------------------------------------------------------------------------------- /mainwindow.h: -------------------------------------------------------------------------------- 1 | #ifndef MAINWINDOW_H 2 | #define MAINWINDOW_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | namespace Ui { 13 | class MainWindow; 14 | } 15 | using namespace std; 16 | 17 | class MainWindow : public QMainWindow 18 | { 19 | Q_OBJECT 20 | public: 21 | explicit MainWindow(QWidget *parent = 0); 22 | ~MainWindow(); 23 | 24 | void keyPressEvent(QKeyEvent *); //重写回车,当回车按下时激活登录按钮点击信号 25 | void getImgAdd(); 26 | 27 | void setGif(void); //设置界面GIF 28 | 29 | map userImg; 30 | private: 31 | Ui::MainWindow *ui; 32 | }; 33 | 34 | #endif // MAINWINDOW_H 35 | -------------------------------------------------------------------------------- /mainwindow.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | MainWindow 4 | 5 | 6 | 7 | 0 8 | 0 9 | 700 10 | 480 11 | 12 | 13 | 14 | 15 | 700 16 | 480 17 | 18 | 19 | 20 | 21 | 700 22 | 480 23 | 24 | 25 | 26 | 27 | 1 28 | 29 | 30 | 31 | 登录界面 32 | 33 | 34 | 35 | 36 | 37 | 90 38 | 200 39 | 416 40 | 130 41 | 42 | 43 | 44 | 45 | 0 46 | 0 47 | 48 | 49 | 50 | 51 | 11 52 | 53 | 54 | 55 | 56 | 57 | 华文新魏 58 | 13 59 | 60 | 61 | 62 | color: rgb(0, 85, 255); 63 | 64 | 65 | 密码: 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 华文新魏 74 | 13 75 | 76 | 77 | 78 | color: rgb(0, 85, 255); 79 | 80 | 81 | 用户名: 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 12 90 | 91 | 92 | 93 | Qt::AlignCenter 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 12 102 | 103 | 104 | 105 | QLineEdit::Password 106 | 107 | 108 | 109 | 110 | lineEdit_username 111 | lineEdit_password 112 | label 113 | label_2 114 | 115 | 116 | 117 | 118 | 170 119 | 340 120 | 356 121 | 53 122 | 123 | 124 | 125 | 126 | 0 127 | 0 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 华文仿宋 136 | 13 137 | 138 | 139 | 140 | 登录 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 华文仿宋 149 | 13 150 | 151 | 152 | 153 | 退出 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 320 163 | 50 164 | 81 165 | 51 166 | 167 | 168 | 169 | 170 | 华文隶书 171 | 20 172 | 173 | 174 | 175 | color: rgb(0, 170, 255); 176 | 177 | 178 | 吾记 179 | 180 | 181 | 182 | 183 | 184 | 300 185 | 100 186 | 101 187 | 91 188 | 189 | 190 | 191 | QFrame::Panel 192 | 193 | 194 | 195 | 196 | 197 | true 198 | 199 | 200 | 201 | 202 | 203 | 0 204 | 0 205 | 700 206 | 480 207 | 208 | 209 | 210 | 211 | 700 212 | 480 213 | 214 | 215 | 216 | TextLabel 217 | 218 | 219 | true 220 | 221 | 222 | gifLabel 223 | widget 224 | widget_2 225 | label_3 226 | image_label 227 | 228 | 229 | 230 | 231 | 232 | 233 | -------------------------------------------------------------------------------- /object_script.Layout.Debug: -------------------------------------------------------------------------------- 1 | INPUT( 2 | ./debug\main.o 3 | ./debug\mainwindow.o 4 | ./debug\userwindow.o 5 | ./debug\editwindow.o 6 | ./debug\diarylog.o 7 | ./debug\detailwindow.o 8 | ./debug\timelistwindow.o 9 | ./debug\qrc_res.o 10 | ./debug\moc_mainwindow.o 11 | ./debug\moc_userwindow.o 12 | ./debug\moc_editwindow.o 13 | ./debug\moc_diarylog.o 14 | ./debug\moc_detailwindow.o 15 | ./debug\moc_timelistwindow.o 16 | ); 17 | -------------------------------------------------------------------------------- /object_script.Layout.Release: -------------------------------------------------------------------------------- 1 | INPUT( 2 | ./release\main.o 3 | ./release\mainwindow.o 4 | ./release\userwindow.o 5 | ./release\editwindow.o 6 | ./release\diarylog.o 7 | ./release\detailwindow.o 8 | ./release\timelistwindow.o 9 | ./release\qrc_res.o 10 | ./release\moc_mainwindow.o 11 | ./release\moc_userwindow.o 12 | ./release\moc_editwindow.o 13 | ./release\moc_diarylog.o 14 | ./release\moc_detailwindow.o 15 | ./release\moc_timelistwindow.o 16 | ); 17 | -------------------------------------------------------------------------------- /object_script.MyDiary.Debug: -------------------------------------------------------------------------------- 1 | INPUT( 2 | ./debug/main.o 3 | ./debug/mainwindow.o 4 | ./debug/userwindow.o 5 | ./debug/editwindow.o 6 | ./debug/diarylog.o 7 | ./debug/detailwindow.o 8 | ./debug/timelistwindow.o 9 | ./debug/qrc_res.o 10 | ./debug/moc_mainwindow.o 11 | ./debug/moc_userwindow.o 12 | ./debug/moc_editwindow.o 13 | ./debug/moc_diarylog.o 14 | ./debug/moc_detailwindow.o 15 | ./debug/moc_timelistwindow.o 16 | ); 17 | -------------------------------------------------------------------------------- /object_script.MyDiary.Release: -------------------------------------------------------------------------------- 1 | INPUT( 2 | ./release/main.o 3 | ./release/mainwindow.o 4 | ./release/userwindow.o 5 | ./release/editwindow.o 6 | ./release/diarylog.o 7 | ./release/detailwindow.o 8 | ./release/timelistwindow.o 9 | ./release/qrc_res.o 10 | ./release/moc_mainwindow.o 11 | ./release/moc_userwindow.o 12 | ./release/moc_editwindow.o 13 | ./release/moc_diarylog.o 14 | ./release/moc_detailwindow.o 15 | ./release/moc_timelistwindow.o 16 | ); 17 | -------------------------------------------------------------------------------- /qtDb0.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/qtDb0.db -------------------------------------------------------------------------------- /qtDb1.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/qtDb1.db -------------------------------------------------------------------------------- /qtDb2.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/qtDb2.db -------------------------------------------------------------------------------- /release/MyDiary.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/MyDiary.exe -------------------------------------------------------------------------------- /release/MyDiary.log: -------------------------------------------------------------------------------- 1 |  Generate moc_predefs.h 2 | MOC detailwindow.h 3 | CUSTOMBUILD : warning : Failed to resolve include "F:/FilesofPractice/QTpractice/SomeProjectsofMyself/MyDiary_vs/release/moc_predefs.h" for moc file detailwindow.h 4 | MOC diarylog.h 5 | CUSTOMBUILD : warning : Failed to resolve include "F:/FilesofPractice/QTpractice/SomeProjectsofMyself/MyDiary_vs/release/moc_predefs.h" for moc file diarylog.h 6 | MOC editwindow.h 7 | CUSTOMBUILD : warning : Failed to resolve include "F:/FilesofPractice/QTpractice/SomeProjectsofMyself/MyDiary_vs/release/moc_predefs.h" for moc file editwindow.h 8 | MOC mainwindow.h 9 | CUSTOMBUILD : warning : Failed to resolve include "F:/FilesofPractice/QTpractice/SomeProjectsofMyself/MyDiary_vs/release/moc_predefs.h" for moc file mainwindow.h 10 | MOC timelistwindow.h 11 | CUSTOMBUILD : warning : Failed to resolve include "F:/FilesofPractice/QTpractice/SomeProjectsofMyself/MyDiary_vs/release/moc_predefs.h" for moc file timelistwindow.h 12 | MOC userwindow.h 13 | CUSTOMBUILD : warning : Failed to resolve include "F:/FilesofPractice/QTpractice/SomeProjectsofMyself/MyDiary_vs/release/moc_predefs.h" for moc file userwindow.h 14 | moc_detailwindow.cpp 15 | moc_diarylog.cpp 16 | e:\filesofpractice\qtpractice\someprojectsofmyself\mydiary_vs\mainwindow.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 17 | moc_editwindow.cpp 18 | e:\filesofpractice\qtpractice\someprojectsofmyself\mydiary_vs\editwindow.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 19 | moc_mainwindow.cpp 20 | e:\filesofpractice\qtpractice\someprojectsofmyself\mydiary_vs\mainwindow.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 21 | e:\filesofpractice\qtpractice\someprojectsofmyself\mydiary_vs\mainwindow.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 22 | moc_timelistwindow.cpp 23 | moc_userwindow.cpp 24 | e:\filesofpractice\qtpractice\someprojectsofmyself\mydiary_vs\mainwindow.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 25 | userwindow.cpp 26 | e:\filesofpractice\qtpractice\someprojectsofmyself\mydiary_vs\mainwindow.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 27 | e:\filesofpractice\qtpractice\someprojectsofmyself\mydiary_vs\editwindow.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 28 | 正在生成代码... 29 | MyDiary.vcxproj -> E:\FilesofPractice\QTpractice\SomeProjectsofMyself\MyDiary_vs\release\MyDiary.exe 30 | -------------------------------------------------------------------------------- /release/MyDiary.tlog/CL.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/MyDiary.tlog/CL.command.1.tlog -------------------------------------------------------------------------------- /release/MyDiary.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/MyDiary.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /release/MyDiary.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/MyDiary.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /release/MyDiary.tlog/MyDiary.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.17763.0 2 | Release|x64|E:\FilesofPractice\QTpractice\SomeProjectsofMyself\MyDiary_vs\| 3 | -------------------------------------------------------------------------------- /release/MyDiary.tlog/custombuild.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/MyDiary.tlog/custombuild.command.1.tlog -------------------------------------------------------------------------------- /release/MyDiary.tlog/custombuild.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/MyDiary.tlog/custombuild.read.1.tlog -------------------------------------------------------------------------------- /release/MyDiary.tlog/custombuild.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/MyDiary.tlog/custombuild.write.1.tlog -------------------------------------------------------------------------------- /release/MyDiary.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/MyDiary.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /release/MyDiary.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/MyDiary.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /release/MyDiary.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/MyDiary.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /release/MyDiary.tlog/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/MyDiary.tlog/rc.command.1.tlog -------------------------------------------------------------------------------- /release/MyDiary.tlog/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/MyDiary.tlog/rc.read.1.tlog -------------------------------------------------------------------------------- /release/MyDiary.tlog/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/MyDiary.tlog/rc.write.1.tlog -------------------------------------------------------------------------------- /release/detailwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/detailwindow.obj -------------------------------------------------------------------------------- /release/diarylog.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/diarylog.obj -------------------------------------------------------------------------------- /release/editwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/editwindow.obj -------------------------------------------------------------------------------- /release/exe_ico.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/exe_ico.res -------------------------------------------------------------------------------- /release/main.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/main.obj -------------------------------------------------------------------------------- /release/mainwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/mainwindow.obj -------------------------------------------------------------------------------- /release/moc_detailwindow.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'detailwindow.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.10) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include "../detailwindow.h" 10 | #include 11 | #include 12 | #if !defined(Q_MOC_OUTPUT_REVISION) 13 | #error "The header file 'detailwindow.h' doesn't include ." 14 | #elif Q_MOC_OUTPUT_REVISION != 67 15 | #error "This file was generated using the moc from 5.12.10. It" 16 | #error "cannot be used with the include files from this version of Qt." 17 | #error "(The moc has changed too much.)" 18 | #endif 19 | 20 | QT_BEGIN_MOC_NAMESPACE 21 | QT_WARNING_PUSH 22 | QT_WARNING_DISABLE_DEPRECATED 23 | struct qt_meta_stringdata_DetailWindow_t { 24 | QByteArrayData data[1]; 25 | char stringdata0[13]; 26 | }; 27 | #define QT_MOC_LITERAL(idx, ofs, len) \ 28 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 29 | qptrdiff(offsetof(qt_meta_stringdata_DetailWindow_t, stringdata0) + ofs \ 30 | - idx * sizeof(QByteArrayData)) \ 31 | ) 32 | static const qt_meta_stringdata_DetailWindow_t qt_meta_stringdata_DetailWindow = { 33 | { 34 | QT_MOC_LITERAL(0, 0, 12) // "DetailWindow" 35 | 36 | }, 37 | "DetailWindow" 38 | }; 39 | #undef QT_MOC_LITERAL 40 | 41 | static const uint qt_meta_data_DetailWindow[] = { 42 | 43 | // content: 44 | 8, // revision 45 | 0, // classname 46 | 0, 0, // classinfo 47 | 0, 0, // methods 48 | 0, 0, // properties 49 | 0, 0, // enums/sets 50 | 0, 0, // constructors 51 | 0, // flags 52 | 0, // signalCount 53 | 54 | 0 // eod 55 | }; 56 | 57 | void DetailWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 58 | { 59 | Q_UNUSED(_o); 60 | Q_UNUSED(_id); 61 | Q_UNUSED(_c); 62 | Q_UNUSED(_a); 63 | } 64 | 65 | QT_INIT_METAOBJECT const QMetaObject DetailWindow::staticMetaObject = { { 66 | &QWidget::staticMetaObject, 67 | qt_meta_stringdata_DetailWindow.data, 68 | qt_meta_data_DetailWindow, 69 | qt_static_metacall, 70 | nullptr, 71 | nullptr 72 | } }; 73 | 74 | 75 | const QMetaObject *DetailWindow::metaObject() const 76 | { 77 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 78 | } 79 | 80 | void *DetailWindow::qt_metacast(const char *_clname) 81 | { 82 | if (!_clname) return nullptr; 83 | if (!strcmp(_clname, qt_meta_stringdata_DetailWindow.stringdata0)) 84 | return static_cast(this); 85 | return QWidget::qt_metacast(_clname); 86 | } 87 | 88 | int DetailWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 89 | { 90 | _id = QWidget::qt_metacall(_c, _id, _a); 91 | return _id; 92 | } 93 | QT_WARNING_POP 94 | QT_END_MOC_NAMESPACE 95 | -------------------------------------------------------------------------------- /release/moc_detailwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/moc_detailwindow.obj -------------------------------------------------------------------------------- /release/moc_diarylog.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'diarylog.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.10) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include "../diarylog.h" 10 | #include 11 | #include 12 | #if !defined(Q_MOC_OUTPUT_REVISION) 13 | #error "The header file 'diarylog.h' doesn't include ." 14 | #elif Q_MOC_OUTPUT_REVISION != 67 15 | #error "This file was generated using the moc from 5.12.10. It" 16 | #error "cannot be used with the include files from this version of Qt." 17 | #error "(The moc has changed too much.)" 18 | #endif 19 | 20 | QT_BEGIN_MOC_NAMESPACE 21 | QT_WARNING_PUSH 22 | QT_WARNING_DISABLE_DEPRECATED 23 | struct qt_meta_stringdata_DiaryLog_t { 24 | QByteArrayData data[3]; 25 | char stringdata0[23]; 26 | }; 27 | #define QT_MOC_LITERAL(idx, ofs, len) \ 28 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 29 | qptrdiff(offsetof(qt_meta_stringdata_DiaryLog_t, stringdata0) + ofs \ 30 | - idx * sizeof(QByteArrayData)) \ 31 | ) 32 | static const qt_meta_stringdata_DiaryLog_t qt_meta_stringdata_DiaryLog = { 33 | { 34 | QT_MOC_LITERAL(0, 0, 8), // "DiaryLog" 35 | QT_MOC_LITERAL(1, 9, 12), // "deleteSignal" 36 | QT_MOC_LITERAL(2, 22, 0) // "" 37 | 38 | }, 39 | "DiaryLog\0deleteSignal\0" 40 | }; 41 | #undef QT_MOC_LITERAL 42 | 43 | static const uint qt_meta_data_DiaryLog[] = { 44 | 45 | // content: 46 | 8, // revision 47 | 0, // classname 48 | 0, 0, // classinfo 49 | 1, 14, // methods 50 | 0, 0, // properties 51 | 0, 0, // enums/sets 52 | 0, 0, // constructors 53 | 0, // flags 54 | 1, // signalCount 55 | 56 | // signals: name, argc, parameters, tag, flags 57 | 1, 0, 19, 2, 0x06 /* Public */, 58 | 59 | // signals: parameters 60 | QMetaType::Void, 61 | 62 | 0 // eod 63 | }; 64 | 65 | void DiaryLog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 66 | { 67 | if (_c == QMetaObject::InvokeMetaMethod) { 68 | auto *_t = static_cast(_o); 69 | Q_UNUSED(_t) 70 | switch (_id) { 71 | case 0: _t->deleteSignal(); break; 72 | default: ; 73 | } 74 | } else if (_c == QMetaObject::IndexOfMethod) { 75 | int *result = reinterpret_cast(_a[0]); 76 | { 77 | using _t = void (DiaryLog::*)(); 78 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DiaryLog::deleteSignal)) { 79 | *result = 0; 80 | return; 81 | } 82 | } 83 | } 84 | Q_UNUSED(_a); 85 | } 86 | 87 | QT_INIT_METAOBJECT const QMetaObject DiaryLog::staticMetaObject = { { 88 | &QWidget::staticMetaObject, 89 | qt_meta_stringdata_DiaryLog.data, 90 | qt_meta_data_DiaryLog, 91 | qt_static_metacall, 92 | nullptr, 93 | nullptr 94 | } }; 95 | 96 | 97 | const QMetaObject *DiaryLog::metaObject() const 98 | { 99 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 100 | } 101 | 102 | void *DiaryLog::qt_metacast(const char *_clname) 103 | { 104 | if (!_clname) return nullptr; 105 | if (!strcmp(_clname, qt_meta_stringdata_DiaryLog.stringdata0)) 106 | return static_cast(this); 107 | return QWidget::qt_metacast(_clname); 108 | } 109 | 110 | int DiaryLog::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 111 | { 112 | _id = QWidget::qt_metacall(_c, _id, _a); 113 | if (_id < 0) 114 | return _id; 115 | if (_c == QMetaObject::InvokeMetaMethod) { 116 | if (_id < 1) 117 | qt_static_metacall(this, _c, _id, _a); 118 | _id -= 1; 119 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 120 | if (_id < 1) 121 | *reinterpret_cast(_a[0]) = -1; 122 | _id -= 1; 123 | } 124 | return _id; 125 | } 126 | 127 | // SIGNAL 0 128 | void DiaryLog::deleteSignal() 129 | { 130 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); 131 | } 132 | QT_WARNING_POP 133 | QT_END_MOC_NAMESPACE 134 | -------------------------------------------------------------------------------- /release/moc_diarylog.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/moc_diarylog.obj -------------------------------------------------------------------------------- /release/moc_editwindow.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'editwindow.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.10) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include "../editwindow.h" 10 | #include 11 | #include 12 | #if !defined(Q_MOC_OUTPUT_REVISION) 13 | #error "The header file 'editwindow.h' doesn't include ." 14 | #elif Q_MOC_OUTPUT_REVISION != 67 15 | #error "This file was generated using the moc from 5.12.10. It" 16 | #error "cannot be used with the include files from this version of Qt." 17 | #error "(The moc has changed too much.)" 18 | #endif 19 | 20 | QT_BEGIN_MOC_NAMESPACE 21 | QT_WARNING_PUSH 22 | QT_WARNING_DISABLE_DEPRECATED 23 | struct qt_meta_stringdata_EditWindow_t { 24 | QByteArrayData data[3]; 25 | char stringdata0[23]; 26 | }; 27 | #define QT_MOC_LITERAL(idx, ofs, len) \ 28 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 29 | qptrdiff(offsetof(qt_meta_stringdata_EditWindow_t, stringdata0) + ofs \ 30 | - idx * sizeof(QByteArrayData)) \ 31 | ) 32 | static const qt_meta_stringdata_EditWindow_t qt_meta_stringdata_EditWindow = { 33 | { 34 | QT_MOC_LITERAL(0, 0, 10), // "EditWindow" 35 | QT_MOC_LITERAL(1, 11, 10), // "saveSignal" 36 | QT_MOC_LITERAL(2, 22, 0) // "" 37 | 38 | }, 39 | "EditWindow\0saveSignal\0" 40 | }; 41 | #undef QT_MOC_LITERAL 42 | 43 | static const uint qt_meta_data_EditWindow[] = { 44 | 45 | // content: 46 | 8, // revision 47 | 0, // classname 48 | 0, 0, // classinfo 49 | 1, 14, // methods 50 | 0, 0, // properties 51 | 0, 0, // enums/sets 52 | 0, 0, // constructors 53 | 0, // flags 54 | 1, // signalCount 55 | 56 | // signals: name, argc, parameters, tag, flags 57 | 1, 0, 19, 2, 0x06 /* Public */, 58 | 59 | // signals: parameters 60 | QMetaType::Void, 61 | 62 | 0 // eod 63 | }; 64 | 65 | void EditWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 66 | { 67 | if (_c == QMetaObject::InvokeMetaMethod) { 68 | auto *_t = static_cast(_o); 69 | Q_UNUSED(_t) 70 | switch (_id) { 71 | case 0: _t->saveSignal(); break; 72 | default: ; 73 | } 74 | } else if (_c == QMetaObject::IndexOfMethod) { 75 | int *result = reinterpret_cast(_a[0]); 76 | { 77 | using _t = void (EditWindow::*)(); 78 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&EditWindow::saveSignal)) { 79 | *result = 0; 80 | return; 81 | } 82 | } 83 | } 84 | Q_UNUSED(_a); 85 | } 86 | 87 | QT_INIT_METAOBJECT const QMetaObject EditWindow::staticMetaObject = { { 88 | &QMainWindow::staticMetaObject, 89 | qt_meta_stringdata_EditWindow.data, 90 | qt_meta_data_EditWindow, 91 | qt_static_metacall, 92 | nullptr, 93 | nullptr 94 | } }; 95 | 96 | 97 | const QMetaObject *EditWindow::metaObject() const 98 | { 99 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 100 | } 101 | 102 | void *EditWindow::qt_metacast(const char *_clname) 103 | { 104 | if (!_clname) return nullptr; 105 | if (!strcmp(_clname, qt_meta_stringdata_EditWindow.stringdata0)) 106 | return static_cast(this); 107 | return QMainWindow::qt_metacast(_clname); 108 | } 109 | 110 | int EditWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 111 | { 112 | _id = QMainWindow::qt_metacall(_c, _id, _a); 113 | if (_id < 0) 114 | return _id; 115 | if (_c == QMetaObject::InvokeMetaMethod) { 116 | if (_id < 1) 117 | qt_static_metacall(this, _c, _id, _a); 118 | _id -= 1; 119 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 120 | if (_id < 1) 121 | *reinterpret_cast(_a[0]) = -1; 122 | _id -= 1; 123 | } 124 | return _id; 125 | } 126 | 127 | // SIGNAL 0 128 | void EditWindow::saveSignal() 129 | { 130 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); 131 | } 132 | QT_WARNING_POP 133 | QT_END_MOC_NAMESPACE 134 | -------------------------------------------------------------------------------- /release/moc_editwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/moc_editwindow.obj -------------------------------------------------------------------------------- /release/moc_mainwindow.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'mainwindow.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.10) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include "../mainwindow.h" 10 | #include 11 | #include 12 | #if !defined(Q_MOC_OUTPUT_REVISION) 13 | #error "The header file 'mainwindow.h' doesn't include ." 14 | #elif Q_MOC_OUTPUT_REVISION != 67 15 | #error "This file was generated using the moc from 5.12.10. It" 16 | #error "cannot be used with the include files from this version of Qt." 17 | #error "(The moc has changed too much.)" 18 | #endif 19 | 20 | QT_BEGIN_MOC_NAMESPACE 21 | QT_WARNING_PUSH 22 | QT_WARNING_DISABLE_DEPRECATED 23 | struct qt_meta_stringdata_MainWindow_t { 24 | QByteArrayData data[1]; 25 | char stringdata0[11]; 26 | }; 27 | #define QT_MOC_LITERAL(idx, ofs, len) \ 28 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 29 | qptrdiff(offsetof(qt_meta_stringdata_MainWindow_t, stringdata0) + ofs \ 30 | - idx * sizeof(QByteArrayData)) \ 31 | ) 32 | static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = { 33 | { 34 | QT_MOC_LITERAL(0, 0, 10) // "MainWindow" 35 | 36 | }, 37 | "MainWindow" 38 | }; 39 | #undef QT_MOC_LITERAL 40 | 41 | static const uint qt_meta_data_MainWindow[] = { 42 | 43 | // content: 44 | 8, // revision 45 | 0, // classname 46 | 0, 0, // classinfo 47 | 0, 0, // methods 48 | 0, 0, // properties 49 | 0, 0, // enums/sets 50 | 0, 0, // constructors 51 | 0, // flags 52 | 0, // signalCount 53 | 54 | 0 // eod 55 | }; 56 | 57 | void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 58 | { 59 | Q_UNUSED(_o); 60 | Q_UNUSED(_id); 61 | Q_UNUSED(_c); 62 | Q_UNUSED(_a); 63 | } 64 | 65 | QT_INIT_METAOBJECT const QMetaObject MainWindow::staticMetaObject = { { 66 | &QMainWindow::staticMetaObject, 67 | qt_meta_stringdata_MainWindow.data, 68 | qt_meta_data_MainWindow, 69 | qt_static_metacall, 70 | nullptr, 71 | nullptr 72 | } }; 73 | 74 | 75 | const QMetaObject *MainWindow::metaObject() const 76 | { 77 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 78 | } 79 | 80 | void *MainWindow::qt_metacast(const char *_clname) 81 | { 82 | if (!_clname) return nullptr; 83 | if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0)) 84 | return static_cast(this); 85 | return QMainWindow::qt_metacast(_clname); 86 | } 87 | 88 | int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 89 | { 90 | _id = QMainWindow::qt_metacall(_c, _id, _a); 91 | return _id; 92 | } 93 | QT_WARNING_POP 94 | QT_END_MOC_NAMESPACE 95 | -------------------------------------------------------------------------------- /release/moc_mainwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/moc_mainwindow.obj -------------------------------------------------------------------------------- /release/moc_predefs.h: -------------------------------------------------------------------------------- 1 | #define _MSC_EXTENSIONS 2 | #define _INTEGRAL_MAX_BITS 64 3 | #define _MSC_VER 1916 4 | #define _MSC_FULL_VER 191627045 5 | #define _MSC_BUILD 0 6 | #define _M_AMD64 100 7 | #define _M_X64 100 8 | #define _WIN64 9 | #define _WIN32 10 | #define _CPPRTTI 11 | #define _MT 12 | #define _DLL 13 | -------------------------------------------------------------------------------- /release/moc_timelistwindow.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'timelistwindow.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.10) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include "../timelistwindow.h" 10 | #include 11 | #include 12 | #if !defined(Q_MOC_OUTPUT_REVISION) 13 | #error "The header file 'timelistwindow.h' doesn't include ." 14 | #elif Q_MOC_OUTPUT_REVISION != 67 15 | #error "This file was generated using the moc from 5.12.10. It" 16 | #error "cannot be used with the include files from this version of Qt." 17 | #error "(The moc has changed too much.)" 18 | #endif 19 | 20 | QT_BEGIN_MOC_NAMESPACE 21 | QT_WARNING_PUSH 22 | QT_WARNING_DISABLE_DEPRECATED 23 | struct qt_meta_stringdata_TimeListWindow_t { 24 | QByteArrayData data[1]; 25 | char stringdata0[15]; 26 | }; 27 | #define QT_MOC_LITERAL(idx, ofs, len) \ 28 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 29 | qptrdiff(offsetof(qt_meta_stringdata_TimeListWindow_t, stringdata0) + ofs \ 30 | - idx * sizeof(QByteArrayData)) \ 31 | ) 32 | static const qt_meta_stringdata_TimeListWindow_t qt_meta_stringdata_TimeListWindow = { 33 | { 34 | QT_MOC_LITERAL(0, 0, 14) // "TimeListWindow" 35 | 36 | }, 37 | "TimeListWindow" 38 | }; 39 | #undef QT_MOC_LITERAL 40 | 41 | static const uint qt_meta_data_TimeListWindow[] = { 42 | 43 | // content: 44 | 8, // revision 45 | 0, // classname 46 | 0, 0, // classinfo 47 | 0, 0, // methods 48 | 0, 0, // properties 49 | 0, 0, // enums/sets 50 | 0, 0, // constructors 51 | 0, // flags 52 | 0, // signalCount 53 | 54 | 0 // eod 55 | }; 56 | 57 | void TimeListWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 58 | { 59 | Q_UNUSED(_o); 60 | Q_UNUSED(_id); 61 | Q_UNUSED(_c); 62 | Q_UNUSED(_a); 63 | } 64 | 65 | QT_INIT_METAOBJECT const QMetaObject TimeListWindow::staticMetaObject = { { 66 | &QWidget::staticMetaObject, 67 | qt_meta_stringdata_TimeListWindow.data, 68 | qt_meta_data_TimeListWindow, 69 | qt_static_metacall, 70 | nullptr, 71 | nullptr 72 | } }; 73 | 74 | 75 | const QMetaObject *TimeListWindow::metaObject() const 76 | { 77 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 78 | } 79 | 80 | void *TimeListWindow::qt_metacast(const char *_clname) 81 | { 82 | if (!_clname) return nullptr; 83 | if (!strcmp(_clname, qt_meta_stringdata_TimeListWindow.stringdata0)) 84 | return static_cast(this); 85 | return QWidget::qt_metacast(_clname); 86 | } 87 | 88 | int TimeListWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 89 | { 90 | _id = QWidget::qt_metacall(_c, _id, _a); 91 | return _id; 92 | } 93 | QT_WARNING_POP 94 | QT_END_MOC_NAMESPACE 95 | -------------------------------------------------------------------------------- /release/moc_timelistwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/moc_timelistwindow.obj -------------------------------------------------------------------------------- /release/moc_userwindow.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'userwindow.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.10) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include "../userwindow.h" 10 | #include 11 | #include 12 | #if !defined(Q_MOC_OUTPUT_REVISION) 13 | #error "The header file 'userwindow.h' doesn't include ." 14 | #elif Q_MOC_OUTPUT_REVISION != 67 15 | #error "This file was generated using the moc from 5.12.10. It" 16 | #error "cannot be used with the include files from this version of Qt." 17 | #error "(The moc has changed too much.)" 18 | #endif 19 | 20 | QT_BEGIN_MOC_NAMESPACE 21 | QT_WARNING_PUSH 22 | QT_WARNING_DISABLE_DEPRECATED 23 | struct qt_meta_stringdata_UserWindow_t { 24 | QByteArrayData data[3]; 25 | char stringdata0[29]; 26 | }; 27 | #define QT_MOC_LITERAL(idx, ofs, len) \ 28 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 29 | qptrdiff(offsetof(qt_meta_stringdata_UserWindow_t, stringdata0) + ofs \ 30 | - idx * sizeof(QByteArrayData)) \ 31 | ) 32 | static const qt_meta_stringdata_UserWindow_t qt_meta_stringdata_UserWindow = { 33 | { 34 | QT_MOC_LITERAL(0, 0, 10), // "UserWindow" 35 | QT_MOC_LITERAL(1, 11, 16), // "ChooseBackSignal" 36 | QT_MOC_LITERAL(2, 28, 0) // "" 37 | 38 | }, 39 | "UserWindow\0ChooseBackSignal\0" 40 | }; 41 | #undef QT_MOC_LITERAL 42 | 43 | static const uint qt_meta_data_UserWindow[] = { 44 | 45 | // content: 46 | 8, // revision 47 | 0, // classname 48 | 0, 0, // classinfo 49 | 1, 14, // methods 50 | 0, 0, // properties 51 | 0, 0, // enums/sets 52 | 0, 0, // constructors 53 | 0, // flags 54 | 1, // signalCount 55 | 56 | // signals: name, argc, parameters, tag, flags 57 | 1, 0, 19, 2, 0x06 /* Public */, 58 | 59 | // signals: parameters 60 | QMetaType::Void, 61 | 62 | 0 // eod 63 | }; 64 | 65 | void UserWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 66 | { 67 | if (_c == QMetaObject::InvokeMetaMethod) { 68 | auto *_t = static_cast(_o); 69 | Q_UNUSED(_t) 70 | switch (_id) { 71 | case 0: _t->ChooseBackSignal(); break; 72 | default: ; 73 | } 74 | } else if (_c == QMetaObject::IndexOfMethod) { 75 | int *result = reinterpret_cast(_a[0]); 76 | { 77 | using _t = void (UserWindow::*)(); 78 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&UserWindow::ChooseBackSignal)) { 79 | *result = 0; 80 | return; 81 | } 82 | } 83 | } 84 | Q_UNUSED(_a); 85 | } 86 | 87 | QT_INIT_METAOBJECT const QMetaObject UserWindow::staticMetaObject = { { 88 | &QMainWindow::staticMetaObject, 89 | qt_meta_stringdata_UserWindow.data, 90 | qt_meta_data_UserWindow, 91 | qt_static_metacall, 92 | nullptr, 93 | nullptr 94 | } }; 95 | 96 | 97 | const QMetaObject *UserWindow::metaObject() const 98 | { 99 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 100 | } 101 | 102 | void *UserWindow::qt_metacast(const char *_clname) 103 | { 104 | if (!_clname) return nullptr; 105 | if (!strcmp(_clname, qt_meta_stringdata_UserWindow.stringdata0)) 106 | return static_cast(this); 107 | return QMainWindow::qt_metacast(_clname); 108 | } 109 | 110 | int UserWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 111 | { 112 | _id = QMainWindow::qt_metacall(_c, _id, _a); 113 | if (_id < 0) 114 | return _id; 115 | if (_c == QMetaObject::InvokeMetaMethod) { 116 | if (_id < 1) 117 | qt_static_metacall(this, _c, _id, _a); 118 | _id -= 1; 119 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 120 | if (_id < 1) 121 | *reinterpret_cast(_a[0]) = -1; 122 | _id -= 1; 123 | } 124 | return _id; 125 | } 126 | 127 | // SIGNAL 0 128 | void UserWindow::ChooseBackSignal() 129 | { 130 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); 131 | } 132 | QT_WARNING_POP 133 | QT_END_MOC_NAMESPACE 134 | -------------------------------------------------------------------------------- /release/moc_userwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/moc_userwindow.obj -------------------------------------------------------------------------------- /release/qrc_res.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/qrc_res.obj -------------------------------------------------------------------------------- /release/qtDb0.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/qtDb0.db -------------------------------------------------------------------------------- /release/qtDb1.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/qtDb1.db -------------------------------------------------------------------------------- /release/qtDb2.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/qtDb2.db -------------------------------------------------------------------------------- /release/timelistwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/timelistwindow.obj -------------------------------------------------------------------------------- /release/userImgAdd.txt: -------------------------------------------------------------------------------- 1 | 1 :/images/IMG_12.png 2 | ZYunfei E:/FilesofPractice/QTpractice/SomeProjectsofMyself/MyDiary_vs/images/IMG_11.png 3 | NBY :/images/IMG_13.png -------------------------------------------------------------------------------- /release/userwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/release/userwindow.obj -------------------------------------------------------------------------------- /res.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/IMG_2.jpg 4 | images/IMG_3.jpeg 5 | images/IMG_4.jpg 6 | images/IMG_5.jpeg 7 | images/IMG_6.png 8 | images/IMG_9.jpeg 9 | images/IMG_10.png 10 | images/IMG_11.png 11 | images/IMG_12.png 12 | images/IMG_14.png 13 | images/IMG_8.png 14 | images/IMG_1.png 15 | images/IMG_15.jpg 16 | images/IMG_16.png 17 | images/IMG_7.gif 18 | images/IMG_13.png 19 | 20 | 21 | -------------------------------------------------------------------------------- /timelistwidget.h: -------------------------------------------------------------------------------- 1 | #ifndef TIMELISTWIDGET_H 2 | #define TIMELISTWIDGET_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class timeListWidget; 8 | } 9 | 10 | class timeListWidget : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit timeListWidget(QWidget *parent = 0); 16 | ~timeListWidget(); 17 | 18 | void databaseInit(QString str); 19 | 20 | private: 21 | Ui::timeListWidget *ui; 22 | }; 23 | 24 | #endif // TIMELISTWIDGET_H 25 | -------------------------------------------------------------------------------- /timelistwindow.cpp: -------------------------------------------------------------------------------- 1 | #include "timelistwindow.h" 2 | #include "ui_timelistwindow.h" 3 | #include 4 | #include 5 | 6 | TimeListWindow::TimeListWindow(QString userName,QWidget * ptr,QWidget *parent) : 7 | QWidget(parent), 8 | ui(new Ui::TimeListWindow) 9 | { 10 | ui->setupUi(this); 11 | 12 | this->setWindowTitle(""); 13 | 14 | //链接数据库 加载日记历史信息 15 | databaseInit(userName); 16 | QSqlQuery query(db); 17 | query.exec("select * from person"); 18 | while(query.next()) 19 | { 20 | QString time = query.value(0).toString(); 21 | if(time != "") 22 | { 23 | QListWidgetItem * listWidgetItem = new QListWidgetItem(time); 24 | ui->listWidget->insertItem(0,listWidgetItem); 25 | } 26 | } 27 | 28 | //双击日期链接出detailwindow 29 | connect(ui->listWidget,&QListWidget::itemDoubleClicked,[=](){ 30 | //下面这两行为了保证最多只出现一个详情窗口,即双击两个listItem后第一个会关闭 31 | delete detailWindow; 32 | detailWindow = NULL; 33 | 34 | QListWidgetItem * currItem = ui->listWidget->currentItem(); 35 | QString chooseTime = currItem->text(); 36 | 37 | databaseInit(userName); 38 | QSqlQuery query(db); 39 | query.exec("select * from person"); 40 | while(query.next()) 41 | { 42 | if(query.value(0).toString() == chooseTime) 43 | { 44 | QString diary = query.value(1).toString(); 45 | QString fontPointSize = query.value(3).toString(); 46 | QString fontFamily = query.value(2).toString(); 47 | detailWindow = new DetailWindow(diary,chooseTime,fontPointSize,fontFamily); 48 | detailWindow->show(); 49 | QPropertyAnimation *pPosAnimation4 = new QPropertyAnimation(detailWindow, "pos"); //添加动画 50 | pPosAnimation4->setDuration(550); 51 | pPosAnimation4->setStartValue(QPoint(ptr->x(),ptr->y())); 52 | pPosAnimation4->setEndValue(QPoint(ptr->x()+ptr->width(),ptr->y())); 53 | pPosAnimation4->setEasingCurve(QEasingCurve::InOutQuad); 54 | pPosAnimation4->start(); 55 | 56 | break; 57 | } 58 | } 59 | }); 60 | } 61 | 62 | void TimeListWindow::databaseInit(QString str) 63 | { 64 | int i; 65 | if(str == "ZYunfei") {i = 0;} 66 | if(str == "1") {i = 1;} 67 | if(str == "NBY") {i = 2;} 68 | db = QSqlDatabase::addDatabase("QSQLITE", QString("myDiary%1").arg(i)); 69 | db.setDatabaseName(QString(".//qtDb%1.db").arg(i)); 70 | if( !db.open()) //这个db.open相当关键啊!没这一步后面写数据可失败。 71 | { 72 | qDebug() << "无法建立数据库连接"; 73 | } 74 | else 75 | { 76 | qDebug()<<"数据库连接成功"; 77 | } 78 | } 79 | 80 | void TimeListWindow::closeEvent(QCloseEvent *e) 81 | { 82 | delete detailWindow; 83 | detailWindow = NULL; 84 | } 85 | 86 | TimeListWindow::~TimeListWindow() 87 | { 88 | delete ui; 89 | } 90 | -------------------------------------------------------------------------------- /timelistwindow.h: -------------------------------------------------------------------------------- 1 | #ifndef TIMELISTWINDOW_H 2 | #define TIMELISTWINDOW_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include "detailwindow.h" 8 | 9 | namespace Ui { 10 | class TimeListWindow; 11 | } 12 | 13 | class TimeListWindow : public QWidget 14 | { 15 | Q_OBJECT 16 | 17 | public: 18 | explicit TimeListWindow(QString userName,QWidget *ptr,QWidget *parent = 0); 19 | ~TimeListWindow(); 20 | 21 | QSqlDatabase db; 22 | void databaseInit(QString str); 23 | DetailWindow * detailWindow = NULL; 24 | 25 | protected: 26 | void closeEvent(QCloseEvent *); //重写关闭事件,当timelistwindow关闭时关闭打开的detailwindow 27 | 28 | 29 | private: 30 | Ui::TimeListWindow *ui; 31 | }; 32 | 33 | #endif // TIMELISTWINDOW_H 34 | -------------------------------------------------------------------------------- /timelistwindow.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | TimeListWindow 4 | 5 | 6 | 7 | 0 8 | 0 9 | 232 10 | 300 11 | 12 | 13 | 14 | 15 | 232 16 | 300 17 | 18 | 19 | 20 | 21 | 232 22 | 300 23 | 24 | 25 | 26 | Form 27 | 28 | 29 | 30 | 31 | 10 32 | 30 33 | 211 34 | 261 35 | 36 | 37 | 38 | Qt::LeftToRight 39 | 40 | 41 | 42 | 43 | 44 | 50 45 | 4 46 | 141 47 | 21 48 | 49 | 50 | 51 | 52 | 楷体 53 | 54 | 55 | 56 | 1 57 | 58 | 59 | 日记时间记录 60 | 61 | 62 | Qt::AlignCenter 63 | 64 | 65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /ui_detailwindow.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'detailwindow.ui' 3 | ** 4 | ** Created by: Qt User Interface Compiler version 5.12.10 5 | ** 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 | ********************************************************************************/ 8 | 9 | #ifndef UI_DETAILWINDOW_H 10 | #define UI_DETAILWINDOW_H 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | 18 | QT_BEGIN_NAMESPACE 19 | 20 | class Ui_DetailWindow 21 | { 22 | public: 23 | QTextBrowser *textBrowser; 24 | QLineEdit *timeEdit; 25 | 26 | void setupUi(QWidget *DetailWindow) 27 | { 28 | if (DetailWindow->objectName().isEmpty()) 29 | DetailWindow->setObjectName(QString::fromUtf8("DetailWindow")); 30 | DetailWindow->resize(411, 330); 31 | DetailWindow->setMinimumSize(QSize(411, 330)); 32 | DetailWindow->setMaximumSize(QSize(411, 330)); 33 | textBrowser = new QTextBrowser(DetailWindow); 34 | textBrowser->setObjectName(QString::fromUtf8("textBrowser")); 35 | textBrowser->setGeometry(QRect(10, 40, 391, 281)); 36 | textBrowser->setAutoFillBackground(false); 37 | textBrowser->setStyleSheet(QString::fromUtf8("background-image: url(:/images/IMG_15.jpg);")); 38 | timeEdit = new QLineEdit(DetailWindow); 39 | timeEdit->setObjectName(QString::fromUtf8("timeEdit")); 40 | timeEdit->setGeometry(QRect(110, 10, 211, 21)); 41 | QFont font; 42 | font.setFamily(QString::fromUtf8("\351\273\221\344\275\223")); 43 | timeEdit->setFont(font); 44 | timeEdit->setAlignment(Qt::AlignCenter); 45 | timeEdit->setReadOnly(true); 46 | 47 | retranslateUi(DetailWindow); 48 | 49 | QMetaObject::connectSlotsByName(DetailWindow); 50 | } // setupUi 51 | 52 | void retranslateUi(QWidget *DetailWindow) 53 | { 54 | DetailWindow->setWindowTitle(QApplication::translate("DetailWindow", "Form", nullptr)); 55 | } // retranslateUi 56 | 57 | }; 58 | 59 | namespace Ui { 60 | class DetailWindow: public Ui_DetailWindow {}; 61 | } // namespace Ui 62 | 63 | QT_END_NAMESPACE 64 | 65 | #endif // UI_DETAILWINDOW_H 66 | -------------------------------------------------------------------------------- /ui_diarylog.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'diarylog.ui' 3 | ** 4 | ** Created by: Qt User Interface Compiler version 5.12.10 5 | ** 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 | ********************************************************************************/ 8 | 9 | #ifndef UI_DIARYLOG_H 10 | #define UI_DIARYLOG_H 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | QT_BEGIN_NAMESPACE 21 | 22 | class Ui_DiaryLog 23 | { 24 | public: 25 | QLabel *timeLabel; 26 | QTextBrowser *textBrowser; 27 | QPushButton *deleteButton; 28 | QLabel *portraitLabel; 29 | QPushButton *detailButton; 30 | 31 | void setupUi(QWidget *DiaryLog) 32 | { 33 | if (DiaryLog->objectName().isEmpty()) 34 | DiaryLog->setObjectName(QString::fromUtf8("DiaryLog")); 35 | DiaryLog->resize(350, 130); 36 | DiaryLog->setMinimumSize(QSize(350, 130)); 37 | DiaryLog->setMaximumSize(QSize(350, 130)); 38 | QFont font; 39 | font.setPointSize(9); 40 | DiaryLog->setFont(font); 41 | DiaryLog->setStyleSheet(QString::fromUtf8("")); 42 | timeLabel = new QLabel(DiaryLog); 43 | timeLabel->setObjectName(QString::fromUtf8("timeLabel")); 44 | timeLabel->setGeometry(QRect(110, 10, 161, 21)); 45 | timeLabel->setMinimumSize(QSize(161, 21)); 46 | timeLabel->setMaximumSize(QSize(161, 21)); 47 | QFont font1; 48 | font1.setFamily(QString::fromUtf8("\351\273\221\344\275\223")); 49 | timeLabel->setFont(font1); 50 | textBrowser = new QTextBrowser(DiaryLog); 51 | textBrowser->setObjectName(QString::fromUtf8("textBrowser")); 52 | textBrowser->setGeometry(QRect(90, 40, 205, 81)); 53 | textBrowser->setMinimumSize(QSize(205, 81)); 54 | textBrowser->setMaximumSize(QSize(205, 81)); 55 | QFont font2; 56 | font2.setFamily(QString::fromUtf8("Arial")); 57 | textBrowser->setFont(font2); 58 | textBrowser->setStyleSheet(QString::fromUtf8("")); 59 | textBrowser->setFrameShape(QFrame::StyledPanel); 60 | textBrowser->setFrameShadow(QFrame::Raised); 61 | textBrowser->setLineWidth(4); 62 | deleteButton = new QPushButton(DiaryLog); 63 | deleteButton->setObjectName(QString::fromUtf8("deleteButton")); 64 | deleteButton->setGeometry(QRect(310, 50, 30, 30)); 65 | deleteButton->setMinimumSize(QSize(30, 30)); 66 | deleteButton->setMaximumSize(QSize(30, 30)); 67 | QIcon icon; 68 | icon.addFile(QString::fromUtf8(":/images/IMG_9.jpeg"), QSize(), QIcon::Normal, QIcon::Off); 69 | deleteButton->setIcon(icon); 70 | deleteButton->setFlat(true); 71 | portraitLabel = new QLabel(DiaryLog); 72 | portraitLabel->setObjectName(QString::fromUtf8("portraitLabel")); 73 | portraitLabel->setGeometry(QRect(20, 50, 50, 50)); 74 | portraitLabel->setMinimumSize(QSize(50, 50)); 75 | portraitLabel->setMaximumSize(QSize(50, 50)); 76 | detailButton = new QPushButton(DiaryLog); 77 | detailButton->setObjectName(QString::fromUtf8("detailButton")); 78 | detailButton->setGeometry(QRect(310, 80, 30, 30)); 79 | detailButton->setMinimumSize(QSize(30, 30)); 80 | detailButton->setMaximumSize(QSize(30, 30)); 81 | QIcon icon1; 82 | icon1.addFile(QString::fromUtf8(":/images/IMG_1.png"), QSize(), QIcon::Normal, QIcon::Off); 83 | detailButton->setIcon(icon1); 84 | detailButton->setFlat(true); 85 | 86 | retranslateUi(DiaryLog); 87 | 88 | QMetaObject::connectSlotsByName(DiaryLog); 89 | } // setupUi 90 | 91 | void retranslateUi(QWidget *DiaryLog) 92 | { 93 | DiaryLog->setWindowTitle(QApplication::translate("DiaryLog", "Form", nullptr)); 94 | timeLabel->setText(QApplication::translate("DiaryLog", "TextLabel", nullptr)); 95 | deleteButton->setText(QString()); 96 | portraitLabel->setText(QApplication::translate("DiaryLog", "TextLabel", nullptr)); 97 | detailButton->setText(QString()); 98 | } // retranslateUi 99 | 100 | }; 101 | 102 | namespace Ui { 103 | class DiaryLog: public Ui_DiaryLog {}; 104 | } // namespace Ui 105 | 106 | QT_END_NAMESPACE 107 | 108 | #endif // UI_DIARYLOG_H 109 | -------------------------------------------------------------------------------- /ui_editwindow.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'editwindow.ui' 3 | ** 4 | ** Created by: Qt User Interface Compiler version 5.12.10 5 | ** 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 | ********************************************************************************/ 8 | 9 | #ifndef UI_EDITWINDOW_H 10 | #define UI_EDITWINDOW_H 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | #include 25 | #include 26 | #include 27 | 28 | QT_BEGIN_NAMESPACE 29 | 30 | class Ui_EditWindow 31 | { 32 | public: 33 | QAction *actionBack; 34 | QWidget *centralwidget; 35 | QVBoxLayout *verticalLayout; 36 | QWidget *widget; 37 | QHBoxLayout *horizontalLayout; 38 | QFontComboBox *fontComboBox; 39 | QLabel *label; 40 | QComboBox *comboBox; 41 | QToolButton *saveButton; 42 | QTextEdit *textEdit; 43 | QMenuBar *menubar; 44 | QMenu *menu; 45 | 46 | void setupUi(QMainWindow *EditWindow) 47 | { 48 | if (EditWindow->objectName().isEmpty()) 49 | EditWindow->setObjectName(QString::fromUtf8("EditWindow")); 50 | EditWindow->resize(600, 400); 51 | EditWindow->setMinimumSize(QSize(0, 0)); 52 | EditWindow->setMaximumSize(QSize(600, 400)); 53 | actionBack = new QAction(EditWindow); 54 | actionBack->setObjectName(QString::fromUtf8("actionBack")); 55 | centralwidget = new QWidget(EditWindow); 56 | centralwidget->setObjectName(QString::fromUtf8("centralwidget")); 57 | verticalLayout = new QVBoxLayout(centralwidget); 58 | verticalLayout->setObjectName(QString::fromUtf8("verticalLayout")); 59 | widget = new QWidget(centralwidget); 60 | widget->setObjectName(QString::fromUtf8("widget")); 61 | horizontalLayout = new QHBoxLayout(widget); 62 | horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout")); 63 | fontComboBox = new QFontComboBox(widget); 64 | fontComboBox->setObjectName(QString::fromUtf8("fontComboBox")); 65 | fontComboBox->setEditable(false); 66 | fontComboBox->setCurrentIndex(234); 67 | 68 | horizontalLayout->addWidget(fontComboBox); 69 | 70 | label = new QLabel(widget); 71 | label->setObjectName(QString::fromUtf8("label")); 72 | label->setMinimumSize(QSize(30, 30)); 73 | label->setMaximumSize(QSize(30, 30)); 74 | label->setPixmap(QPixmap(QString::fromUtf8(":/images/IMG_6.png"))); 75 | label->setScaledContents(true); 76 | 77 | horizontalLayout->addWidget(label); 78 | 79 | comboBox = new QComboBox(widget); 80 | comboBox->addItem(QString()); 81 | comboBox->addItem(QString()); 82 | comboBox->addItem(QString()); 83 | comboBox->addItem(QString()); 84 | comboBox->addItem(QString()); 85 | comboBox->addItem(QString()); 86 | comboBox->addItem(QString()); 87 | comboBox->addItem(QString()); 88 | comboBox->addItem(QString()); 89 | comboBox->setObjectName(QString::fromUtf8("comboBox")); 90 | 91 | horizontalLayout->addWidget(comboBox); 92 | 93 | saveButton = new QToolButton(widget); 94 | saveButton->setObjectName(QString::fromUtf8("saveButton")); 95 | saveButton->setMinimumSize(QSize(30, 30)); 96 | saveButton->setMaximumSize(QSize(30, 30)); 97 | QIcon icon; 98 | icon.addFile(QString::fromUtf8(":/images/IMG_4.jpg"), QSize(), QIcon::Normal, QIcon::Off); 99 | saveButton->setIcon(icon); 100 | 101 | horizontalLayout->addWidget(saveButton); 102 | 103 | 104 | verticalLayout->addWidget(widget); 105 | 106 | textEdit = new QTextEdit(centralwidget); 107 | textEdit->setObjectName(QString::fromUtf8("textEdit")); 108 | 109 | verticalLayout->addWidget(textEdit); 110 | 111 | EditWindow->setCentralWidget(centralwidget); 112 | menubar = new QMenuBar(EditWindow); 113 | menubar->setObjectName(QString::fromUtf8("menubar")); 114 | menubar->setGeometry(QRect(0, 0, 600, 26)); 115 | menu = new QMenu(menubar); 116 | menu->setObjectName(QString::fromUtf8("menu")); 117 | EditWindow->setMenuBar(menubar); 118 | 119 | menubar->addAction(menu->menuAction()); 120 | menu->addAction(actionBack); 121 | 122 | retranslateUi(EditWindow); 123 | 124 | comboBox->setCurrentIndex(5); 125 | 126 | 127 | QMetaObject::connectSlotsByName(EditWindow); 128 | } // setupUi 129 | 130 | void retranslateUi(QMainWindow *EditWindow) 131 | { 132 | EditWindow->setWindowTitle(QApplication::translate("EditWindow", "\346\227\245\350\256\260\347\274\226\350\276\221", nullptr)); 133 | actionBack->setText(QApplication::translate("EditWindow", "\350\277\224\345\233\236\344\270\212\344\270\200\347\272\247", nullptr)); 134 | fontComboBox->setCurrentText(QApplication::translate("EditWindow", "\345\215\216\346\226\207\346\245\267\344\275\223", nullptr)); 135 | label->setText(QString()); 136 | comboBox->setItemText(0, QApplication::translate("EditWindow", "6", nullptr)); 137 | comboBox->setItemText(1, QApplication::translate("EditWindow", "7", nullptr)); 138 | comboBox->setItemText(2, QApplication::translate("EditWindow", "8", nullptr)); 139 | comboBox->setItemText(3, QApplication::translate("EditWindow", "9", nullptr)); 140 | comboBox->setItemText(4, QApplication::translate("EditWindow", "10", nullptr)); 141 | comboBox->setItemText(5, QApplication::translate("EditWindow", "11", nullptr)); 142 | comboBox->setItemText(6, QApplication::translate("EditWindow", "12", nullptr)); 143 | comboBox->setItemText(7, QApplication::translate("EditWindow", "13", nullptr)); 144 | comboBox->setItemText(8, QApplication::translate("EditWindow", "14", nullptr)); 145 | 146 | saveButton->setText(QApplication::translate("EditWindow", "...", nullptr)); 147 | menu->setTitle(QApplication::translate("EditWindow", "\345\274\200\345\247\213", nullptr)); 148 | } // retranslateUi 149 | 150 | }; 151 | 152 | namespace Ui { 153 | class EditWindow: public Ui_EditWindow {}; 154 | } // namespace Ui 155 | 156 | QT_END_NAMESPACE 157 | 158 | #endif // UI_EDITWINDOW_H 159 | -------------------------------------------------------------------------------- /ui_mainwindow.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'mainwindow.ui' 3 | ** 4 | ** Created by: Qt User Interface Compiler version 5.12.10 5 | ** 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 | ********************************************************************************/ 8 | 9 | #ifndef UI_MAINWINDOW_H 10 | #define UI_MAINWINDOW_H 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | 22 | QT_BEGIN_NAMESPACE 23 | 24 | class Ui_MainWindow 25 | { 26 | public: 27 | QWidget *centralWidget; 28 | QWidget *widget; 29 | QGridLayout *gridLayout; 30 | QLabel *label; 31 | QLabel *label_2; 32 | QLineEdit *lineEdit_username; 33 | QLineEdit *lineEdit_password; 34 | QWidget *widget_2; 35 | QHBoxLayout *horizontalLayout_2; 36 | QPushButton *pushButton_login; 37 | QPushButton *pushButton_logout; 38 | QLabel *label_3; 39 | QLabel *image_label; 40 | QLabel *gifLabel; 41 | 42 | void setupUi(QMainWindow *MainWindow) 43 | { 44 | if (MainWindow->objectName().isEmpty()) 45 | MainWindow->setObjectName(QString::fromUtf8("MainWindow")); 46 | MainWindow->resize(700, 480); 47 | MainWindow->setMinimumSize(QSize(700, 480)); 48 | MainWindow->setMaximumSize(QSize(700, 480)); 49 | QFont font; 50 | font.setPointSize(1); 51 | MainWindow->setFont(font); 52 | centralWidget = new QWidget(MainWindow); 53 | centralWidget->setObjectName(QString::fromUtf8("centralWidget")); 54 | widget = new QWidget(centralWidget); 55 | widget->setObjectName(QString::fromUtf8("widget")); 56 | widget->setGeometry(QRect(90, 200, 416, 130)); 57 | QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); 58 | sizePolicy.setHorizontalStretch(0); 59 | sizePolicy.setVerticalStretch(0); 60 | sizePolicy.setHeightForWidth(widget->sizePolicy().hasHeightForWidth()); 61 | widget->setSizePolicy(sizePolicy); 62 | gridLayout = new QGridLayout(widget); 63 | gridLayout->setSpacing(6); 64 | gridLayout->setContentsMargins(11, 11, 11, 11); 65 | gridLayout->setObjectName(QString::fromUtf8("gridLayout")); 66 | gridLayout->setContentsMargins(-1, -1, -1, 11); 67 | label = new QLabel(widget); 68 | label->setObjectName(QString::fromUtf8("label")); 69 | QFont font1; 70 | font1.setFamily(QString::fromUtf8("\345\215\216\346\226\207\346\226\260\351\255\217")); 71 | font1.setPointSize(13); 72 | label->setFont(font1); 73 | label->setStyleSheet(QString::fromUtf8("color: rgb(0, 85, 255);")); 74 | 75 | gridLayout->addWidget(label, 1, 0, 1, 1); 76 | 77 | label_2 = new QLabel(widget); 78 | label_2->setObjectName(QString::fromUtf8("label_2")); 79 | label_2->setFont(font1); 80 | label_2->setStyleSheet(QString::fromUtf8("color: rgb(0, 85, 255);")); 81 | 82 | gridLayout->addWidget(label_2, 0, 0, 1, 1); 83 | 84 | lineEdit_username = new QLineEdit(widget); 85 | lineEdit_username->setObjectName(QString::fromUtf8("lineEdit_username")); 86 | QFont font2; 87 | font2.setPointSize(12); 88 | lineEdit_username->setFont(font2); 89 | lineEdit_username->setAlignment(Qt::AlignCenter); 90 | 91 | gridLayout->addWidget(lineEdit_username, 0, 1, 1, 1); 92 | 93 | lineEdit_password = new QLineEdit(widget); 94 | lineEdit_password->setObjectName(QString::fromUtf8("lineEdit_password")); 95 | lineEdit_password->setFont(font2); 96 | lineEdit_password->setEchoMode(QLineEdit::Password); 97 | 98 | gridLayout->addWidget(lineEdit_password, 1, 1, 1, 1); 99 | 100 | lineEdit_username->raise(); 101 | lineEdit_password->raise(); 102 | label->raise(); 103 | label_2->raise(); 104 | widget_2 = new QWidget(centralWidget); 105 | widget_2->setObjectName(QString::fromUtf8("widget_2")); 106 | widget_2->setGeometry(QRect(170, 340, 356, 53)); 107 | sizePolicy.setHeightForWidth(widget_2->sizePolicy().hasHeightForWidth()); 108 | widget_2->setSizePolicy(sizePolicy); 109 | horizontalLayout_2 = new QHBoxLayout(widget_2); 110 | horizontalLayout_2->setSpacing(6); 111 | horizontalLayout_2->setContentsMargins(11, 11, 11, 11); 112 | horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2")); 113 | pushButton_login = new QPushButton(widget_2); 114 | pushButton_login->setObjectName(QString::fromUtf8("pushButton_login")); 115 | QFont font3; 116 | font3.setFamily(QString::fromUtf8("\345\215\216\346\226\207\344\273\277\345\256\213")); 117 | font3.setPointSize(13); 118 | pushButton_login->setFont(font3); 119 | 120 | horizontalLayout_2->addWidget(pushButton_login); 121 | 122 | pushButton_logout = new QPushButton(widget_2); 123 | pushButton_logout->setObjectName(QString::fromUtf8("pushButton_logout")); 124 | pushButton_logout->setFont(font3); 125 | 126 | horizontalLayout_2->addWidget(pushButton_logout); 127 | 128 | label_3 = new QLabel(centralWidget); 129 | label_3->setObjectName(QString::fromUtf8("label_3")); 130 | label_3->setGeometry(QRect(320, 50, 81, 51)); 131 | QFont font4; 132 | font4.setFamily(QString::fromUtf8("\345\215\216\346\226\207\351\232\266\344\271\246")); 133 | font4.setPointSize(20); 134 | label_3->setFont(font4); 135 | label_3->setStyleSheet(QString::fromUtf8("color: rgb(0, 170, 255);")); 136 | image_label = new QLabel(centralWidget); 137 | image_label->setObjectName(QString::fromUtf8("image_label")); 138 | image_label->setGeometry(QRect(300, 100, 101, 91)); 139 | image_label->setFrameShape(QFrame::Panel); 140 | image_label->setScaledContents(true); 141 | gifLabel = new QLabel(centralWidget); 142 | gifLabel->setObjectName(QString::fromUtf8("gifLabel")); 143 | gifLabel->setGeometry(QRect(0, 0, 700, 480)); 144 | gifLabel->setMinimumSize(QSize(700, 480)); 145 | gifLabel->setScaledContents(true); 146 | MainWindow->setCentralWidget(centralWidget); 147 | gifLabel->raise(); 148 | widget->raise(); 149 | widget_2->raise(); 150 | label_3->raise(); 151 | image_label->raise(); 152 | 153 | retranslateUi(MainWindow); 154 | 155 | QMetaObject::connectSlotsByName(MainWindow); 156 | } // setupUi 157 | 158 | void retranslateUi(QMainWindow *MainWindow) 159 | { 160 | MainWindow->setWindowTitle(QApplication::translate("MainWindow", "\347\231\273\345\275\225\347\225\214\351\235\242", nullptr)); 161 | label->setText(QApplication::translate("MainWindow", "\345\257\206\347\240\201\357\274\232", nullptr)); 162 | label_2->setText(QApplication::translate("MainWindow", "\347\224\250\346\210\267\345\220\215\357\274\232", nullptr)); 163 | pushButton_login->setText(QApplication::translate("MainWindow", "\347\231\273\345\275\225", nullptr)); 164 | pushButton_logout->setText(QApplication::translate("MainWindow", "\351\200\200\345\207\272", nullptr)); 165 | label_3->setText(QApplication::translate("MainWindow", "\345\220\276\350\256\260", nullptr)); 166 | image_label->setText(QString()); 167 | gifLabel->setText(QApplication::translate("MainWindow", "TextLabel", nullptr)); 168 | } // retranslateUi 169 | 170 | }; 171 | 172 | namespace Ui { 173 | class MainWindow: public Ui_MainWindow {}; 174 | } // namespace Ui 175 | 176 | QT_END_NAMESPACE 177 | 178 | #endif // UI_MAINWINDOW_H 179 | -------------------------------------------------------------------------------- /ui_timelistwindow.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'timelistwindow.ui' 3 | ** 4 | ** Created by: Qt User Interface Compiler version 5.12.10 5 | ** 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 | ********************************************************************************/ 8 | 9 | #ifndef UI_TIMELISTWINDOW_H 10 | #define UI_TIMELISTWINDOW_H 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | 18 | QT_BEGIN_NAMESPACE 19 | 20 | class Ui_TimeListWindow 21 | { 22 | public: 23 | QListWidget *listWidget; 24 | QLabel *label; 25 | 26 | void setupUi(QWidget *TimeListWindow) 27 | { 28 | if (TimeListWindow->objectName().isEmpty()) 29 | TimeListWindow->setObjectName(QString::fromUtf8("TimeListWindow")); 30 | TimeListWindow->resize(232, 300); 31 | TimeListWindow->setMinimumSize(QSize(232, 300)); 32 | TimeListWindow->setMaximumSize(QSize(232, 300)); 33 | listWidget = new QListWidget(TimeListWindow); 34 | listWidget->setObjectName(QString::fromUtf8("listWidget")); 35 | listWidget->setGeometry(QRect(10, 30, 211, 261)); 36 | listWidget->setLayoutDirection(Qt::LeftToRight); 37 | label = new QLabel(TimeListWindow); 38 | label->setObjectName(QString::fromUtf8("label")); 39 | label->setGeometry(QRect(50, 4, 141, 21)); 40 | QFont font; 41 | font.setFamily(QString::fromUtf8("\346\245\267\344\275\223")); 42 | label->setFont(font); 43 | label->setMidLineWidth(1); 44 | label->setAlignment(Qt::AlignCenter); 45 | 46 | retranslateUi(TimeListWindow); 47 | 48 | QMetaObject::connectSlotsByName(TimeListWindow); 49 | } // setupUi 50 | 51 | void retranslateUi(QWidget *TimeListWindow) 52 | { 53 | TimeListWindow->setWindowTitle(QApplication::translate("TimeListWindow", "Form", nullptr)); 54 | label->setText(QApplication::translate("TimeListWindow", "\346\227\245\350\256\260\346\227\266\351\227\264\350\256\260\345\275\225", nullptr)); 55 | } // retranslateUi 56 | 57 | }; 58 | 59 | namespace Ui { 60 | class TimeListWindow: public Ui_TimeListWindow {}; 61 | } // namespace Ui 62 | 63 | QT_END_NAMESPACE 64 | 65 | #endif // UI_TIMELISTWINDOW_H 66 | -------------------------------------------------------------------------------- /ui_userwindow.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'userwindow.ui' 3 | ** 4 | ** Created by: Qt User Interface Compiler version 5.12.10 5 | ** 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 | ********************************************************************************/ 8 | 9 | #ifndef UI_USERWINDOW_H 10 | #define UI_USERWINDOW_H 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | #include 25 | 26 | QT_BEGIN_NAMESPACE 27 | 28 | class Ui_UserWindow 29 | { 30 | public: 31 | QAction *actionOutApp; 32 | QAction *actionBackLog; 33 | QWidget *centralwidget; 34 | QToolButton *newFileButton; 35 | QTextEdit *textEditStart; 36 | QScrollArea *scrollArea; 37 | QWidget *scrollAreaWidgetContents_2; 38 | QLabel *userLabel; 39 | QLabel *timeLabel; 40 | QLabel *diaryNumLabel; 41 | QPushButton *timeListButon; 42 | QMenuBar *menubar; 43 | QMenu *menu; 44 | 45 | void setupUi(QMainWindow *UserWindow) 46 | { 47 | if (UserWindow->objectName().isEmpty()) 48 | UserWindow->setObjectName(QString::fromUtf8("UserWindow")); 49 | UserWindow->resize(400, 800); 50 | UserWindow->setMinimumSize(QSize(400, 800)); 51 | UserWindow->setMaximumSize(QSize(400, 800)); 52 | actionOutApp = new QAction(UserWindow); 53 | actionOutApp->setObjectName(QString::fromUtf8("actionOutApp")); 54 | actionBackLog = new QAction(UserWindow); 55 | actionBackLog->setObjectName(QString::fromUtf8("actionBackLog")); 56 | centralwidget = new QWidget(UserWindow); 57 | centralwidget->setObjectName(QString::fromUtf8("centralwidget")); 58 | newFileButton = new QToolButton(centralwidget); 59 | newFileButton->setObjectName(QString::fromUtf8("newFileButton")); 60 | newFileButton->setGeometry(QRect(360, 30, 31, 31)); 61 | QIcon icon; 62 | icon.addFile(QString::fromUtf8(":/images/IMG_2.jpg"), QSize(), QIcon::Normal, QIcon::Off); 63 | newFileButton->setIcon(icon); 64 | textEditStart = new QTextEdit(centralwidget); 65 | textEditStart->setObjectName(QString::fromUtf8("textEditStart")); 66 | textEditStart->setGeometry(QRect(10, 80, 381, 31)); 67 | QFont font; 68 | font.setFamily(QString::fromUtf8("\345\215\216\346\226\207\346\226\260\351\255\217")); 69 | font.setPointSize(10); 70 | textEditStart->setFont(font); 71 | textEditStart->setReadOnly(true); 72 | scrollArea = new QScrollArea(centralwidget); 73 | scrollArea->setObjectName(QString::fromUtf8("scrollArea")); 74 | scrollArea->setGeometry(QRect(10, 130, 381, 561)); 75 | scrollArea->setStyleSheet(QString::fromUtf8("background-image: url(:/images/IMG_14.png);")); 76 | scrollArea->setWidgetResizable(true); 77 | scrollAreaWidgetContents_2 = new QWidget(); 78 | scrollAreaWidgetContents_2->setObjectName(QString::fromUtf8("scrollAreaWidgetContents_2")); 79 | scrollAreaWidgetContents_2->setGeometry(QRect(0, 0, 379, 559)); 80 | scrollArea->setWidget(scrollAreaWidgetContents_2); 81 | userLabel = new QLabel(centralwidget); 82 | userLabel->setObjectName(QString::fromUtf8("userLabel")); 83 | userLabel->setGeometry(QRect(20, 10, 50, 50)); 84 | userLabel->setMinimumSize(QSize(50, 50)); 85 | userLabel->setMaximumSize(QSize(50, 50)); 86 | timeLabel = new QLabel(centralwidget); 87 | timeLabel->setObjectName(QString::fromUtf8("timeLabel")); 88 | timeLabel->setGeometry(QRect(120, 10, 171, 16)); 89 | QFont font1; 90 | font1.setFamily(QString::fromUtf8("\351\273\221\344\275\223")); 91 | timeLabel->setFont(font1); 92 | timeLabel->setAlignment(Qt::AlignCenter); 93 | diaryNumLabel = new QLabel(centralwidget); 94 | diaryNumLabel->setObjectName(QString::fromUtf8("diaryNumLabel")); 95 | diaryNumLabel->setGeometry(QRect(120, 40, 161, 16)); 96 | QFont font2; 97 | font2.setFamily(QString::fromUtf8("\345\215\216\346\226\207\351\232\266\344\271\246")); 98 | diaryNumLabel->setFont(font2); 99 | diaryNumLabel->setAlignment(Qt::AlignCenter); 100 | timeListButon = new QPushButton(centralwidget); 101 | timeListButon->setObjectName(QString::fromUtf8("timeListButon")); 102 | timeListButon->setGeometry(QRect(40, 720, 41, 41)); 103 | QFont font3; 104 | font3.setFamily(QString::fromUtf8("\345\276\256\350\275\257\351\233\205\351\273\221")); 105 | timeListButon->setFont(font3); 106 | QIcon icon1; 107 | icon1.addFile(QString::fromUtf8(":/images/IMG_16.png"), QSize(), QIcon::Normal, QIcon::Off); 108 | timeListButon->setIcon(icon1); 109 | timeListButon->setIconSize(QSize(30, 30)); 110 | UserWindow->setCentralWidget(centralwidget); 111 | menubar = new QMenuBar(UserWindow); 112 | menubar->setObjectName(QString::fromUtf8("menubar")); 113 | menubar->setGeometry(QRect(0, 0, 400, 26)); 114 | menu = new QMenu(menubar); 115 | menu->setObjectName(QString::fromUtf8("menu")); 116 | UserWindow->setMenuBar(menubar); 117 | 118 | menubar->addAction(menu->menuAction()); 119 | menu->addAction(actionOutApp); 120 | menu->addAction(actionBackLog); 121 | 122 | retranslateUi(UserWindow); 123 | 124 | QMetaObject::connectSlotsByName(UserWindow); 125 | } // setupUi 126 | 127 | void retranslateUi(QMainWindow *UserWindow) 128 | { 129 | UserWindow->setWindowTitle(QApplication::translate("UserWindow", "MainWindow", nullptr)); 130 | actionOutApp->setText(QApplication::translate("UserWindow", "\351\200\200\345\207\272\345\272\224\347\224\250", nullptr)); 131 | actionBackLog->setText(QApplication::translate("UserWindow", "\350\277\224\345\233\236\347\231\273\345\275\225\347\225\214\351\235\242", nullptr)); 132 | newFileButton->setText(QApplication::translate("UserWindow", "...", nullptr)); 133 | userLabel->setText(QApplication::translate("UserWindow", "TextLabel", nullptr)); 134 | timeLabel->setText(QApplication::translate("UserWindow", "TextLabel", nullptr)); 135 | diaryNumLabel->setText(QApplication::translate("UserWindow", "TextLabel", nullptr)); 136 | timeListButon->setText(QString()); 137 | menu->setTitle(QApplication::translate("UserWindow", "\350\217\234\345\215\225", nullptr)); 138 | } // retranslateUi 139 | 140 | }; 141 | 142 | namespace Ui { 143 | class UserWindow: public Ui_UserWindow {}; 144 | } // namespace Ui 145 | 146 | QT_END_NAMESPACE 147 | 148 | #endif // UI_USERWINDOW_H 149 | -------------------------------------------------------------------------------- /userImgAdd.txt: -------------------------------------------------------------------------------- 1 | 1 :/images/IMG_12.png 2 | ZYunfei E:/VideosAndPictures/graduate.png 3 | NBY :/images/IMG_13.png -------------------------------------------------------------------------------- /userwindow.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZYunfeii/QtDiary/c32cd8eb9f520277d4637d738bb78a27c58a22d7/userwindow.cpp -------------------------------------------------------------------------------- /userwindow.h: -------------------------------------------------------------------------------- 1 | #ifndef USERWINDOW_H 2 | #define USERWINDOW_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include "mainwindow.h" 8 | #include "diarylog.h" 9 | #include 10 | #include 11 | #include 12 | 13 | 14 | namespace Ui { 15 | class UserWindow; 16 | } 17 | using namespace std; 18 | class UserWindow : public QMainWindow 19 | { 20 | Q_OBJECT 21 | 22 | public: 23 | UserWindow(QWidget *parent = 0); 24 | UserWindow(QString,class MainWindow *); 25 | ~UserWindow(); 26 | void paintEvent(QPaintEvent *); 27 | bool UserWindow::eventFilter(QObject *obj, QEvent *event); 28 | 29 | QSqlDatabase db; 30 | void databaseInit(QString str); 31 | 32 | int numberOfRows = 0; //日记条数 33 | 34 | 35 | 36 | 37 | private: 38 | Ui::UserWindow *ui; 39 | QString userName; 40 | vector diarylogList; 41 | 42 | signals: 43 | void ChooseBackSignal(); 44 | }; 45 | 46 | #endif // USERWINDOW_H 47 | -------------------------------------------------------------------------------- /userwindow.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | UserWindow 4 | 5 | 6 | 7 | 0 8 | 0 9 | 400 10 | 800 11 | 12 | 13 | 14 | 15 | 400 16 | 800 17 | 18 | 19 | 20 | 21 | 400 22 | 800 23 | 24 | 25 | 26 | MainWindow 27 | 28 | 29 | 30 | 31 | 32 | 360 33 | 30 34 | 31 35 | 31 36 | 37 | 38 | 39 | ... 40 | 41 | 42 | 43 | :/images/IMG_2.jpg:/images/IMG_2.jpg 44 | 45 | 46 | 47 | 48 | 49 | 10 50 | 80 51 | 381 52 | 31 53 | 54 | 55 | 56 | 57 | 华文新魏 58 | 10 59 | 60 | 61 | 62 | true 63 | 64 | 65 | 66 | 67 | 68 | 10 69 | 130 70 | 381 71 | 561 72 | 73 | 74 | 75 | background-image: url(:/images/IMG_14.png); 76 | 77 | 78 | true 79 | 80 | 81 | 82 | 83 | 0 84 | 0 85 | 379 86 | 559 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 20 95 | 10 96 | 50 97 | 50 98 | 99 | 100 | 101 | 102 | 50 103 | 50 104 | 105 | 106 | 107 | 108 | 50 109 | 50 110 | 111 | 112 | 113 | TextLabel 114 | 115 | 116 | 117 | 118 | 119 | 120 120 | 10 121 | 171 122 | 16 123 | 124 | 125 | 126 | 127 | 黑体 128 | 129 | 130 | 131 | TextLabel 132 | 133 | 134 | Qt::AlignCenter 135 | 136 | 137 | 138 | 139 | 140 | 120 141 | 40 142 | 161 143 | 16 144 | 145 | 146 | 147 | 148 | 华文隶书 149 | 150 | 151 | 152 | TextLabel 153 | 154 | 155 | Qt::AlignCenter 156 | 157 | 158 | 159 | 160 | 161 | 40 162 | 720 163 | 41 164 | 41 165 | 166 | 167 | 168 | 169 | 微软雅黑 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | :/images/IMG_16.png:/images/IMG_16.png 178 | 179 | 180 | 181 | 30 182 | 30 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 0 191 | 0 192 | 400 193 | 26 194 | 195 | 196 | 197 | 198 | 菜单 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 退出应用 208 | 209 | 210 | 211 | 212 | 返回登录界面 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | --------------------------------------------------------------------------------