qt

If you use Qt Creator/Mingw(the Qt Creator installation package contains Mingw so you do not need to install Mingw separately), you will have no problem debugging your application. Qt Creator […]

Although this authority document talks about the porting issues arising from transferring from qtwebkit to qtwebengine, there are still a lot more to do to accomplish the porting. Porting from […]

Here is a code snippet writing data to a file: QFile outfile(“file.txt”); if (!outfile.open(QIODevice::Append)) { exit(); } QTextStream out(&outfile); out.setCodec(“UTF-8″); for(int i=0;i<100000;i++) { out<<“somedata”; } outfile.close(); If you press the […]

qt gui programming

I seldom play with the bells and whistles of Qt gui elements. All I used to do is adding some buttons on a QDialog derived object and connecting them to […]

You can pass a file system path to the construction function of QFileInfo like: QFileInfo(“C:\\a\\b/c/d/e”); The string passed as the parameter of the constructor is not necessarily a real file […]

QUrl seems a powerful tool that you can use to get every part of a url. But since a url can have complex syntax, I wonder if QUrl can handle […]

In Qt, connecting a signal to a slot is done as follows: connect(sender,signal,receiver,slot); This is a static function of QObject. QObject has also non-static versions of connect so you can […]