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 […]
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 […]
QDir has two versions of exists function that check if a folder exists: QDir(“a/b”).exists(); QDir().exists(“a/b”); There is a little difference between the two functions. If a is a directory and […]
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 […]
Deploying a Qt application always causes problems for Qt users. This is why there are so many complaints and appeal to add a command to deploy program automatically. But Qt […]
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 […]
If you’ve read my post on how to install Qt 5.10 on Windows, you must have known the installation of Qt on Windows is not a trivial work. Installing Qt […]
As Qt WebKit is replaced by Qt WebEngine(you can refer to this post about porting issues), accessing html elements from C++ directly becomes impossible. Many works originally done by QWebKit […]
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 […]