redirect methods
You must have seen url redirect. You click an html redirect link. The link does not take you to the page it points to, but redirects the url to another […]
You must have seen url redirect. You click an html redirect link. The link does not take you to the page it points to, but redirects the url to another […]
I set a cookie as follows: setcookie(“mycookie”, “1”, time()+8); The cookie “mycookie” is set to “1” and will expire in 8 seconds. The http Set-Cookie header received from the server […]
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 […]
php has a powerful function called mail(). You can use this function to send emails from your script. <?php // the message $msg = “First line of text\nSecond line of […]
How to create a pop up box on your web page? You may think of using javascript. However, the trend is to create such popup windows without using javascript as […]
Intercepting ajax requests is useful in some cases. For example, you may want to intercept the url of an ajax request, or you want to intercept the data sent via […]
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 […]
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. (The root abstract […]
A common compiling command is as follows: g++ a.cpp b.cpp -o app.exe -I include1dir -I include2dir -l libray1.a -l libray2.a -L libdir1 -L libdir2 The application is compiled out of […]