Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-120313

QPdfView requires a mandatory parent argument

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: P2: Important P2: Important
    • None
    • 6.4.0, 6.5, 6.6
    • None
    • All

      Unlike all widgets, the parent argument of QPdfView is mandatory.

      I don't know if this is a problem in C++, but at least in PyQt (and probably in PySide), when the widget is created in Designer, the `parent` keyworded argument is not accepted using the dynamic uic loader.

      Even assuming that the problem only exists in PyQt, I still believe that the argument should not be mandatory, as it is clearly not required for the widget constructor: the fact that QPdfView can be created with a None (nullptr) parent, proves that it's unnecessary.

      For the same reason, I think that the change should also be applied to QPdfDocument too.

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

            mmutz Marc Mutz
            musicamante Maurizio Berti
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes