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. Auto-regiersting QML types in MSBuild
Qt 6.11 is out! See what's new in the release blog

Auto-regiersting QML types in MSBuild

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 158 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.
  • R Offline
    R Offline
    rsjosh
    wrote last edited by
    #1

    Hi, I'm trying to setup a simple Qt Quick app in Visual Studio using the Qt VS Tools extension, because I need to use MSBuild. However, I'm having difficulties auto-registering my C++ types.
    Unfortunately, there is no documentation in that regard. I noticed there is a <QtQmlTypeRegistrar> target, but I don't know how to use it.

    1 Reply Last reply
    0
    • Nils SjobergN Offline
      Nils SjobergN Offline
      Nils Sjoberg
      wrote last edited by
      #2

      Write a .pro file, import it into Qt VS Tools - QtQmlTypeRegistrar is valid in MSBuild - this is the only supported path,

      "What's up, Doc?"

      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