I have a frame with 5 widget in it. 4 toolbutton and 1 tableview. Well, i tried get the frame children..

Qt Code:
  1. QList<QWidget *> anak=frame->findChildren<QWidget *>();
  2. qDebug() << anak.size();
  3. //result is 23
To copy to clipboard, switch view to plain text mode 

Why the result not is 5 ? How to just get only frame children, not subchildren too..