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

Example for setCellWidget parameter is wrong

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.7.0
    • Fix Version/s: 5.6.2
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      Qt 5.7 documentation on web
    • Commits:
      a825e1ed0d4d5ac8d26142037ba475430d33eabd

      Description

      The example for setCellwidget is:
      setCellWidget(index, new QLineEdit);
      ...
      setCellWidget(index, new QTextEdit);

      showing only two parameter, but the parameter list has three parameters.
      void QTableWidget::setCellWidget(int row, int column, QWidget *widget)

      Change in the example "index" to "row, col" for instance.

        Attachments

        For Gerrit Dashboard: QTBUG-61894
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            treinio Topi Reiniƶ
            Reporter:
            koahnig Ko Ahnig
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes