how to intercept all events for a QWidget
If you search google for how to capture events, most articles you get will teach you install event filter for child objects, then rewrite the eventFilter function in parent. This […]
If you search google for how to capture events, most articles you get will teach you install event filter for child objects, then rewrite the eventFilter function in parent. This […]
You have several ways to simulate mouse events in a Qt application. First, you can create and post mouse events using native functions like: QMouseEvent eve(…); qApp->sendEvent(this , &eve); Second, […]
Sometimes it is necessary to alter the user-agent header for the request sent by QWebView. Some websites may refuse your visit if you do not use a normal browser. In […]
We have known the meaning and difference of the coordinate parameters in a java script event object. To simulate mouse event with javascript,you need to create a mouse event then […]
The 4 coordinate parameters in a Javascript mouse event object are very confusing. screenX and screenY are called screen coordinates which represent the position relative to the top-left of the computer screen. […]
The first and most important thing to begin your responsive web design is to set the viewport meta. The syntax is like <meta name=”viewport” content=”width=300, initial-scale=1″>. What does the width […]
I always forget the difference between the grouping selector and the descendant selector. grouping selector: h1,h2 {…} descendant selector: h1 em {…} child selector(like descendant selector but only selects the […]
What is the xml root element? The first tag except the “<?xml version=”1.0″ encoding=”ISO-8859-1″?>” and the <!DOCTYPE …> is the root element. How to get the xml document root in […]
Some concepts of Qt Thread are subtle enough to confuse most newbies. You may have read articles about “the right way” and “the wrong way” to use Qt thread, and […]
We know that . in a regular express means “any character”. But it is not true when . is in []. A . in [] just means . itself. If […]