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

Equality operator yields "QFSFileEngine::open: No file name specified"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.15.2
    • PySide
    • None
    • Linux/X11

    Description

      Not exactly image formats, didn't spot a better component for this.

      This code:

      from PySIde2.QtGui import QImage
      
      if QImage() == None:
       print("it is None!")
      

      Outputs

       QFSFileEngine::open: No file name specified
       it is None!
      

      I'd guess it's not as desired and is just some tiny easy-to-fix problem with the Shiboken wrapper, i.e. it is attempting to convert None to a QImage that then kind of fails with the first warning/debug line.

      Though seems harmless to the overall execution, can make devs ignorant to actual problems that the warning would be meant to point towards otherwise. Also may reduce overall impression of a final product (if any ever existed   ).

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            brezniczky Janos Brezniczky
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes