class_docstr: Convenience class used for laying out QWidgets in a grid.
  (It's just a little less effort to use than QGridLayout)
class_docstr_tok: ["Convenience","class","used","for","laying","out","QWidgets","in","a","grid",".","(","It","'s","just","a","little","less","effort","to","use","than","QGridLayout",")"]
docstr: Add a widget to the layout and place it in the next available cell (or in the cell specified).
docstr_tok: ["Add","a","widget","to","the","layout","and","place","it","in","the","next","available","cell","(","or","in","the","cell","specified",")","."]
code: def addWidget(self, item, row=None, col=None, rowspan=1, colspan=1):
      """
      Add a widget to the layout and place it in the next available cell (or in the cell specified).
      """
      if row == "next":
          self.nextRow()
          row = self.currentRow
      elif row is None:
          row = self.currentRow
  
      if col is None:
          col = self.nextCol(colspan)
  
      if row not in self.rows:
          self.rows[row] = {}
      self.rows[row][col] = item
      self.items[item] = (row, col)
  
      self.layout.addWidget(item, row, col, rowspan, colspan)
  
file_path: pyqtgraph/pyqtgraph/widgets/LayoutWidget.py
imports: from ..Qt import QtWidgets
label_desc: Use image node_id 7 for calling the LayoutWidget obj's underlying member method code with example usage: obj.addWidget(item, row, col, rowspan, colspan) without return types