Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-751

QScreenRayCaster

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.12.0
    • 5.11.1
    • PySide
    • None
    • 831b22fcd6eb9b45c9e7834799a91698ec00a6a4 (pyside-setup, 26.7.2018, 5.12)

    Description

      It seems that QScreenRayCaster cannot be used in Python via PySide 2.
       
      def _init_(self):
          # some code
          self.screen_ray_caster = Qt3DRender.QScreenRayCaster(self.root_entity)
          # some code
       
      def some_mouse_event(self, e):
          self.screen_ray_caster.trigger(e.pos())
          self.screen_ray_caster.hits()
       

      And error is thrown:

      AttributeError: 'PySide2.Qt3DRender.Qt3DRender.QScreenRayCaster' object has no attribute 'hits'

      I also tried to get information via signals and so I wrote this line:
       
      self.screen_ray_caster.hitsChanged.connect(self.test)

      Sadly this method has never been called.

      Attachments

        For Gerrit Dashboard: PYSIDE-751
        # Subject Branch Project Status CR V

        Activity

          People

            kleint Friedemann Kleint
            jirauser48988 user-4faae (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes