QCheckBox partially checked state appears the same as checked state in standalone application
-
Hello I am developing a C++ application with Qt5.14.2 and visual studio 2017 and I am running into a problem with QCheckBox partially checked state. It appears exactly the same as checked state in a standalone application (running outside of visual studio), however when running within visual studio (both debug and release), the partially checked state appears correctly. I've recently upgraded from Qt5.12.7 to Qt5.14.2 and I didnt have any problem with Qt5.12.7.
My suspicion is since in debug mode in visual studio, I only set the QT_DIR to be the root directory of Qt, therefore, all required dlls can be loaded if needed. But in a standalone application, I only copy a few dlls which are needed by the application therefore might miss some. I've already copied all dlls in bin directory but still couldnt get it work.
Anyone has some ideas ? Thanks in advance! -
Hi, welcome to the forum.
If you only copy dlls from bin you're missing plugins, and if your app runs anyway it's possible it's picking up dlls from wrong version (that's what you get when you set paths globally for your system).
You don't need to set QT_DIR and you shouldn't copy dlls manually. Use windeployqt tool.