Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. error in qml c++ integration
QtWS25 Last Chance

error in qml c++ integration

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 3 Posters 760 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.
  • M Offline
    M Offline
    Marito Mesquita
    wrote on last edited by
    #1

    hi can someone please tell me why my qml c++ integration always give these errors?
    C:\Qt\5.11.2\mingw53_32\include\QtQml\qqmlprivate.h:98: error: call of overloaded 'Calcul()' is ambiguous

    C:\Qt\5.11.2\mingw53_32\include\QtQml\qqmlprivate.h:107: error: use of deleted function 'QQmlPrivate::QQmlElement<Calcul>::QQmlElement()'
    void createInto(void *memory) { new (memory) QQmlElement<T>; }
    ^

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Marito Mesquita
      wrote on last edited by
      #2

      0_1547567150620_Screenshot (71).png

      Pablo J. RoginaP 1 Reply Last reply
      0
      • M Marito Mesquita

        0_1547567150620_Screenshot (71).png

        Pablo J. RoginaP Offline
        Pablo J. RoginaP Offline
        Pablo J. Rogina
        wrote on last edited by
        #3

        @Marito-Mesquita what about sharing your code?

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        M 1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          Did you create default qtquick project ? Does the default project gives the same error ? Error in image posted shows that you did not include qqmlappengine class. Did you including this ? Aslo please share sample code which has error.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          1 Reply Last reply
          0
          • Pablo J. RoginaP Pablo J. Rogina

            @Marito-Mesquita what about sharing your code?

            M Offline
            M Offline
            Marito Mesquita
            wrote on last edited by
            #5

            @Pablo-J.-Rogina 0_1547896970719_Screenshot (113).png

            hi this is the code; it's the basic code from main function. i have included the qqmlapplicationengine, and the error persists

            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