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. What does this mean?
Forum Updated to NodeBB v4.3 + New Features

What does this mean?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 216 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • kkoehneK Offline
      kkoehneK Offline
      kkoehne
      Moderators
      wrote on last edited by
      #2

      Digging into qtdeclarative, it seems qmltyperegistrar only acknowledges .h , .hpp, .hxx, .hh file suffixes as header files, and warns otherwise:

                  if (!include.endsWith(QLatin1String(".h"))
                          && !include.endsWith(QLatin1String(".hpp"))
                          && !include.endsWith(QLatin1String(".hxx"))
                          && !include.endsWith(QLatin1String(".hh"))
                          && !include.endsWith(u".py")
                          && include.contains(QLatin1Char('.'))) {
                      fprintf(stderr,
                              "Class %s is declared in %s, which appears not to be a header.\n"
                              "The compilation of its registration to QML may fail.\n",
                              qPrintable(classDef.value(QLatin1String("qualifiedClassName"))
                                         .toString()),
                              qPrintable(include));
                  }
      

      Director R&D, The Qt Company

      SPlattenS 1 Reply Last reply
      3
      • kkoehneK kkoehne

        Digging into qtdeclarative, it seems qmltyperegistrar only acknowledges .h , .hpp, .hxx, .hh file suffixes as header files, and warns otherwise:

                    if (!include.endsWith(QLatin1String(".h"))
                            && !include.endsWith(QLatin1String(".hpp"))
                            && !include.endsWith(QLatin1String(".hxx"))
                            && !include.endsWith(QLatin1String(".hh"))
                            && !include.endsWith(u".py")
                            && include.contains(QLatin1Char('.'))) {
                        fprintf(stderr,
                                "Class %s is declared in %s, which appears not to be a header.\n"
                                "The compilation of its registration to QML may fail.\n",
                                qPrintable(classDef.value(QLatin1String("qualifiedClassName"))
                                           .toString()),
                                qPrintable(include));
                    }
        
        SPlattenS Offline
        SPlattenS Offline
        SPlatten
        wrote on last edited by
        #3

        @kkoehne , thank you.

        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