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

Example for setCellWidget parameter is wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.6.2
    • 5.7.0
    • Documentation
    • None
    • Qt 5.7 documentation on web
    • 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

        1. Unbenannt.PNG
          35 kB
          Ko Ahnig
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            treinio Topi Reiniƶ
            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