Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Identical property names in inherited classes
Forum Updated to NodeBB v4.3 + New Features

Identical property names in inherited classes

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 611 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.
  • A Offline
    A Offline
    Asperamanca
    wrote on last edited by
    #1

    What is supposed to happen if a base class declared a certain Qt property, and an inherited class declares a property of the same name?

    • Case A: Properties are identical
    • Case B: Properties differ in type or other characteristics
    jsulmJ 1 Reply Last reply
    0
    • A Asperamanca

      What is supposed to happen if a base class declared a certain Qt property, and an inherited class declares a property of the same name?

      • Case A: Properties are identical
      • Case B: Properties differ in type or other characteristics
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Asperamanca What is supposed to happen can be discovered by trying out

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Asperamanca
        wrote on last edited by
        #3

        That way I only discover what actually happens, but I do not know whether this is intended behavior.

        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