Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Get an error "mimetypemodel.cpp" error C2440
Forum Updated to NodeBB v4.3 + New Features

Get an error "mimetypemodel.cpp" error C2440

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 709 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.
  • UrgusU Offline
    UrgusU Offline
    Urgus
    wrote on last edited by
    #1

    Hi,
    i try to build from src 5.7.0 with all modules (MSVS 2013 x86), but after an houer compilation get an error:

    mimetypemodel.cpp(74): error C2440: (function-style-cast)... etc.

    can anybody say what's the reason and how to resolve?

    Thanks!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      The "quick and dirty" way to solve it: don't build the examples.

      If that's not wanted, edit the file and change the return statement to generate the list without using braced initializer. AFAIK, it should be supported by VS2013 but I may be wrong.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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