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

QPdfView requires a mandatory parent argument

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.0, 6.5, 6.6
    • None
    • All

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes