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. [SOLVED] Are you able to extend QML via C++ with MSVC2010 ?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Are you able to extend QML via C++ with MSVC2010 ?

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 2.1k 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.
  • P Offline
    P Offline
    Peppy
    wrote on last edited by
    #1

    Hi folks, I may be quite annoying you, but it is very important, are you able to extend QML via C++ without any application crash? Could you provide me some information how to do that? Because I am getting still my bug (discovered by me)...
    "[QTBUG-25999]":https://bugreports.qt-project.org/browse/QTBUG-25999

    Well, I have noticed there "Extending QML - Adding Types Example":http://qt-project.org/doc/qt-4.8/declarative-cppextensions-referenceexamples-adding-main-cpp.html
    That's fine for any root object. okay. And what about non-root objects, that are placed somewhere inside any other object?

    How to get over that? I wouldn't ask you unless it was urgent...

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DigitalPioneer
      wrote on last edited by
      #2

      That's odd; the example on your bug report works fine for me (using Qt 4.8.2 on Linux) and I've never had trouble extending QML with C++.

      You can download my entire project (it's just the code from your bug report, but it has a working .pro and the like) here, if you want: http://ge.tt/45dR2EJ/v/0?c

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Peppy
        wrote on last edited by
        #3

        It's not odd. Neither your project is working at my desktop. I am using MSVC 2010 compiler...

        So it's compiler-specific problem - not working under MSVC2010... I am gonna download MinGW...

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DigitalPioneer
          wrote on last edited by
          #4

          Definitely worth a shot. On my system, it works fine with both G++ and Clang. I've had trouble with the MSVC 2010 compiler before, though.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Peppy
            wrote on last edited by
            #5

            Bug it's only under MSVC.
            Solution: work with MinGW

            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