Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QCheckBox partially checked state appears the same as checked state in standalone application
Forum Updated to NodeBB v4.3 + New Features

QCheckBox partially checked state appears the same as checked state in standalone application

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 681 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Beau
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      4
      • B Offline
        B Offline
        Beau
        wrote on last edited by
        #3

        Thank you very much for your reply! Will take a look at your link.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved