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

Enum in gadget returns junk value if type is set to int8_t

    XMLWordPrintable

Details

    • Linux/X11

    Description

      Enums registered in a Q_Namespace using Q_ENUM_NS do not function when they are properties of a gadget returned as a property of an object if the enum type is set to int8_t and not just plain enum.

       

      In the attached example, i have created class Foo, Gadget Bar, and a TestEnum in TestNS namespace

      Foo contains a Bar, which contains a TestEnum.

      Getting the test enum directly through the namespace works, so does grabbing it from Foo, and grabbing it as an int from Bar, but grabbing it as an enum from BAR (MEMBER or READ) returns junk.

       

      Attachments

        For Gerrit Dashboard: QTBUG-99636
        # Subject Branch Project Status CR V

        Activity

          People

            fabiankosmale Fabian Kosmale
            ihaber Ian Haber
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change