Simulate drag-drop in Qt
You may think mouse drag-drop simulation is as easy as mouse click simulation because a drag-drop event is just composed of a mouse press event, some mouse move events, and […]
You may think mouse drag-drop simulation is as easy as mouse click simulation because a drag-drop event is just composed of a mouse press event, some mouse move events, and […]
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 […]
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 […]
One of the methods to run your code in another process(remote process)(so-called code injection) is using Windows Hook. The process is as follows: You write your code in a function […]
Inline assembly in VC is very simple. You embed the assembly code in C/C++ code as if you are writing a pure assembly language file. For example, the following inline […]
I am compiling a dll with 3 .c files and one .cpp file using mingw gcc, when this error occurs “undefined reference to `__gxx_personality_sj0′”. The reference comes from the .cpp […]