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. Error when I try to develop Qt Widget Application
QtWS25 Last Chance

Error when I try to develop Qt Widget Application

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 342 Views
  • 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.
  • S Offline
    S Offline
    Stevendragoes
    wrote on last edited by
    #1

    Hello,

    I have the following error when I try to build with MSVC2017. Any Idea why?
    i have installed Windows SDKs and MSVC2017 installed.
    However, when i try to use MINGW to compile and run the program, it works perfectly fine.
    4c2f353b-3983-4bb7-8759-b867533ffaa5-image.png

    aha_1980A 1 Reply Last reply
    0
    • S Stevendragoes

      Hello,

      I have the following error when I try to build with MSVC2017. Any Idea why?
      i have installed Windows SDKs and MSVC2017 installed.
      However, when i try to use MINGW to compile and run the program, it works perfectly fine.
      4c2f353b-3983-4bb7-8759-b867533ffaa5-image.png

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @Stevendragoes,

      that looks like a code model error.

      Can you actually compile the program?

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      1
      • S Offline
        S Offline
        Stevendragoes
        wrote on last edited by
        #3

        Hello @aha_1980

        I can compile if I were to use MinGW to build and run the program as per normal.
        However, when I change my Kit to Destop Qt5.12.6 MSVC2017 32bit. the above error appears.
        I just want to find out what is the issue here with the MSVC part.

        1 Reply Last reply
        0
        • hskoglundH Offline
          hskoglundH Offline
          hskoglund
          wrote on last edited by
          #4

          Hi, did you install Qt first and then later installed MSVC2017?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Stevendragoes
            wrote on last edited by
            #5

            Hi @hskoglund Yes. I install QT First then installed MSVC2017. Was that the problem?

            1 Reply Last reply
            0
            • hskoglundH Offline
              hskoglundH Offline
              hskoglund
              wrote on last edited by
              #6

              Yes, I think so, best is to first install all the compilers you want on your PC, then after that install Qt, so that Qt's installer will detect what compilers are present and configure Qt correctly.

              1 Reply Last reply
              2

              • Login

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