Qt program cannot start due to fail to load Qt platform plugin “windows”
If you deploy your Qt program to another host, you may get this error when running the program on that computer: This application failed to start because it could not […]
If you deploy your Qt program to another host, you may get this error when running the program on that computer: This application failed to start because it could not […]
I used the following code to convert html to plain text: QTextDocument doc; doc.setHtml( html); QString txt= doc.toPlainText(); Things went well until one day the program hang. After debugging, it […]
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 […]
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 […]