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 […]

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

As a C++ programmer, you do not need to buy a python book to learn it from the beginning. Bearing in your mind some differences between C++ and python is […]

Javascript source code is clear text, which can be seen easily by right-clicking the web page and clicking the “view source code” menu item. To protect your javascript source code […]

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 […]

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 […]