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. Properties not included in doc

Properties not included in doc

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 714 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.
  • O Offline
    O Offline
    ofmrew
    wrote on last edited by
    #1

    Why do some classes document the properties while others do not, e.g., QPushButton and QGraphicsItem? How to find the missing properties?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      They are probably in the base class. click "List of all members, including inherited members" at the top of the docs

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      O 1 Reply Last reply
      1
      • VRoninV VRonin

        They are probably in the base class. click "List of all members, including inherited members" at the top of the docs

        O Offline
        O Offline
        ofmrew
        wrote on last edited by
        #3

        @VRonin I tried that with QGraphicsItem and it does show the properties at the beginning of the list' however, the property "pos" was not listed. Another problem is that there is no inherits, only clue is "QT += widgets". QWidgets does list its properties and "pos" was listed. The only clue in the source code that it might inherit from QWidget was "class Q_WIDGETS_EXPORT QGraphicsItem". Does it inherit from QWidget?

        1 Reply Last reply
        0
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          because pos is not a property of QGraphicsItem just a normal method: http://doc.qt.io/qt-5/qgraphicsitem.html#pos

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          O 1 Reply Last reply
          1
          • VRoninV VRonin

            because pos is not a property of QGraphicsItem just a normal method: http://doc.qt.io/qt-5/qgraphicsitem.html#pos

            O Offline
            O Offline
            ofmrew
            wrote on last edited by
            #5

            @VRonin OK, thanks. My confusion was in the attaq example in animation framework used the "pos" property and I just found that the class being used had QGraphicsObject as the base class and not QGraphicsItem as I had assumed. QGraphicsObject does have the "pos" property.

            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