I made a mistake to search backwards with the indexOf function of QString: QString str=”hi, myprogrammingnotes.com is a good place to learn programming knowledge.”; int pos=str.indexOf(“good”,-1); I thought the second […]

Qt installer is about the most awful installer I’ve ever seen.Qt team want to make their program appear as professional as Microsoft Visual Studio.Unfortunately, they forget what makes their program […]

The simple model/view example often gives beginners an illusion that after they re-implement the 4 virtual functions: rowCount, columnCount, data, headerData, their model is ready to roll. They take it […]

If you use QTextStream to read and write files, sooner or later, you will encounter the codec problem. Interestingly, Qt uses utf-8 string almost anywhere but QTextStream does not use […]

Qt project file(.pro file) is used to control the build of projects. I seldom use that because I’m scared by so many mysterious macros. But if you do not want […]