I am trying to extend the Qt example FlowLayout to include the insertWidgetAt(int position, QWidget* w) method.
I wrote (borrowed the code from QBoxLayout):
Code:
//public: addChildWidget(w); insertItem(pos,QLayoutPrivate::createWidgetItem(this, w)); //*** invalidate(); } //private: itemList.insert(pos,item); }
At the line marked with //***, gcc gives "incomplete type `QLayoutPrivate' used in nested name specifier" error. What should I do to implement the method?