Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Inconsistency QMessageBox.event() documentation Qt C++ and PySide6
Forum Updated to NodeBB v4.3 + New Features

Inconsistency QMessageBox.event() documentation Qt C++ and PySide6

Scheduled Pinned Locked Moved Unsolved Qt for Python
4 Posts 3 Posters 438 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ErriezE Offline
    ErriezE Offline
    Erriez
    wrote on last edited by
    #1

    After searching on internet, I found a code snipped to resize a simple QMessageBox via an event as it is not officially supported or documented, but works:

    class ResizableMessageBox(QMessageBox):
        def __init__(self):
            QMessageBox.__init__(self)
    
            self.setSizeGripEnabled(True)
    
        def event(self, e):
            # Undocumented: The only way of resizing a QMessageBox is from an event
            result = QMessageBox.event(self, e)
    
            self.setMinimumSize(275, 125)
            self.setMaximumSize(500, 500)
    
            self.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
    
            return result
    

    When trying to understand the code and lookup function event() in the PySide6 documentation, there is another inconsistency between C++ and PySide6 documentation:

    • PySide6 event() not documented.
    • Qt C++ event() is documented.

    When the PySide6 documentation is generated from C++ code, why is the documentation incomplete and inconsistent? We already identified a very large number of PySide6 documentation issues.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      As already explained in other threads, the Python documentation is automatically generated from the C++ version. The process is not perfect but you will have better chance of improvement if you bring the issues you find on the Qt bug report system rather than on this user forum.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • ErriezE Offline
        ErriezE Offline
        Erriez
        wrote on last edited by Erriez
        #3

        As already explained in other threads, the Python documentation is automatically generated from the C++ version.

        This is just one example of unexpected inconsistency in documentation between C++ and PySide6, but found also other documentation issues like "forgot to update after a code change" and non-working examples. For us not minor details.

        The process is not perfect but you will have better chance of improvement if you bring the issues you find on the Qt bug report system rather than on this user forum.

        Another issue where we wasted lots of time creating test cases on non-working window move on Wayland was already requested by someone else to update documentation in September 2020 QTBUG-86780, but not resolved, no progress.
        Issue reported, requested documentation update QTBUG-110119, closed, no update.

        It is simply impossible to create a test case and report all documentation issues individually without a follow-up. This is a commercial sold product where we expected a higher documentation quality.

        JonBJ 1 Reply Last reply
        0
        • ErriezE Erriez

          As already explained in other threads, the Python documentation is automatically generated from the C++ version.

          This is just one example of unexpected inconsistency in documentation between C++ and PySide6, but found also other documentation issues like "forgot to update after a code change" and non-working examples. For us not minor details.

          The process is not perfect but you will have better chance of improvement if you bring the issues you find on the Qt bug report system rather than on this user forum.

          Another issue where we wasted lots of time creating test cases on non-working window move on Wayland was already requested by someone else to update documentation in September 2020 QTBUG-86780, but not resolved, no progress.
          Issue reported, requested documentation update QTBUG-110119, closed, no update.

          It is simply impossible to create a test case and report all documentation issues individually without a follow-up. This is a commercial sold product where we expected a higher documentation quality.

          JonBJ Online
          JonBJ Online
          JonB
          wrote on last edited by
          #4

          @Erriez said in Inconsistency QMessageBox.event() documentation Qt C++ and PySide6:

          This is a commercial sold product where we expected a higher documentation quality.

          If you have a commercial licence then you would be best raising your issues with TQtC rather than this user forum.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved