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

AttributeError: 'PySide2.QtWidgets.QComboBox' object has no attribute 'textActivated'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.12.5
    • PySide
    • None
    • Autodesk Maya 2018, python 2.7
    • Windows

    Description

      Hi i'm unable to find a pyside2 binding for textActivated signal

      https://doc.qt.io/qtforpython/PySide2/QtWidgets/QComboBox.html#PySide2.QtWidgets.PySide2.QtWidgets.QComboBox.textActivated

      https://doc.qt.io/qt-5/qcombobox.html#textActivated

       

      Error: 'PySide2.QtWidgets.QComboBox' object has no attribute 'textActivated'

       

      not sure what actual Qt version i'm on, it says

      PySide2 version:  2.0.0~alpha0

      components of Qt used to compile PySide: 5.6.1 

      implemented for Autodesk Maya 2018

       

       

      from PySide2 import QtCore, QtGui, QtWidgets
      print QtCore.__version_info__
      x = QtWidgets.QComboBox()
      x.textActivated.connect()
      (5, 6, 1)
      # Error: 'PySide2.QtWidgets.QComboBox' object has no attribute 'textActivated'
      # Traceback (most recent call last):
      # File "<maya console>", line 5, in <module>
      # AttributeError: 'PySide2.QtWidgets.QComboBox' object has no attribute 'textActivated' #
      

       

      edit:

      also tried it on autodesk maya 2020

       i guess that version number is more relatable to the actual qt version?

      from PySide2 import QtCore, QtGui, QtWidgets
      print QtCore.__version_info__
      x = QtWidgets.QComboBox()
      x.textActivated.connect()
      (5, 12, 5)
      # Error: AttributeError: file <maya console> line 5: 'PySide2.QtWidgets.QComboBox' object has no attribute 'textActivated' #
      

       

      so i guess i'm out of luck here since it came out on 5.14

       

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            veto Tristan Morelle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes