Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-42106

moc does not understand long unsigned int as a type.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.3.2
    • Build tools: moc
    • None
    • ArchLinux x86_64
      libc++4.9.1
      Qt 5.3.2

      Hi,

      I want to set a Q_PROPERTY of type 'size_t' for my cpp object, but 'size_t' is not recognized by QT, so I want to use the real type of 'size_t' (and not just typing 'unsigned long' instead) to keep the code working on different platforms.
      So I decided to use the '_SIZE_TYPE_' macro which returned on my environnement 'long unsigned int'.
      The problem is that the parser get an error while reading the 'int' token:

      Game.hpp:23: Parse error at "int"
      Makefile:410: recipe for target 'moc_Game.cpp' failed

      So it seems that the parser is not able to handle this type but handles 'unsigned long'.

      Please make the parser handle it.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            kido Nicolas ALLAIN
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes