The working directory of Qt projects
A Qt project typically has some source files, header files, and a .pro file(project file) in a directory. If you copy a whole project directory that has been built to […]
A Qt project typically has some source files, header files, and a .pro file(project file) in a directory. If you copy a whole project directory that has been built to […]
The deprecation of QWebView in Qt5.7 seems a sign of the Qt team being compromised by M$ finally. However this creates many troubles for programmers porting QWebView to QWebEngine. Although […]
If you have a typo in a php file that breaks the syntax, the php engine cannot execute the php code and exits. You will see a blank page. The […]
When you switch Qt from the old version to the latest version(Qt 5.7.0), you must find your programs cannot compile any more. Even you do not change any option, the […]
When you compile a program using mingw, an error may cause a lot of output in the command window. Because the cmd window only stores a limited lines of text, […]
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 […]