Uploaded image for project: 'Qt Project Website'
  1. Qt Project Website
  2. QTWEBSITE-1223

Akismet blocks namespace qualifications of >2 sections at forum.qt.io.

    XMLWordPrintable

Details

    • Linux/Wayland
    • 2

    Description

      Errata

      Akismet blocks namespace qualifications of >2 sections at forum.qt.io.

      An example is forum.qt.io/post/820494 (albeit paraphrased to be easier to read, because Jira doesn't suffer from the same problems):

      I managed to modify the problematic code block:

      class InitialWindow(PyQt6.QtWidgets.QMainWindow):
          def __init__(self):
              central_widget = PyQt6.QtWidgets.QWidget()
              self.setCentralWidget(central_widget)
              self.addDockWidget(PyQt6.QtCore.Qt.DockWidgetArea.TopDockWidgetArea, toolbar_dock)
              self.addDockWidget(PyQt6.QtCore.Qt.DockWidgetArea.TopDockWidgetArea, main_content_dock)
              self.splitDockWidget(toolbar_dock, main_content_dock, PyQt6.QtCore.Qt.Orientation.Vertical)
              central_layout = PyQt6.QtWidgets.QVBoxLayout()
              central_widget.setLayout(central_layout)
      

      ...to bypass it, by reducing the import qualification lengths:

      class InitialWindow(QMainWindow):
          def __init__(self):
              central_widget = QWidget()
              self.setCentralWidget(central_widget)
              self.addDockWidget(TopDockWidgetArea, toolbar_dock)
              self.addDockWidget(TopDockWidgetArea, main_content_dock)
              self.splitDockWidget(toolbar_dock, main_content_dock, QtCore.Qt.Orientation.Vertical)
              central_layout = QVBoxLayout()
              central_widget.setLayout(central_layout)
      

      As an example, PyQt6.QtCore.Qt.DockWidgetArea.TopDockWidgetArea became TopDockWidgetArea.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            beedellrokejulianlockhart ROKE BEEDELL
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes