QGraphicsView hidden constructors
-
I created a new class inheriting from
QGraphicsViewand since I have to provide the same superclass constructors, I noticed on the docs that there are two of themQGraphicsView::QGraphicsView(QWidget * parent = 0)andQGraphicsView::QGraphicsView(QGraphicsScene * scene, QWidget * parent = 0)
However, inside QtCreator, two additionals constructors/functions are shown:
QGraphicsView::QGraphicsView(QGraphicsViewPrivate &, QWidget * parent = 0)andQGraphicsView::QGraphicsView(const QGraphicsView &)
I can't find any indication about these two methods anywhere. I can't even find anything explaining what a
QGraphicsViewPrivateis.Are there some kind of private members?
I am usingextra/qt5-base 5.5.1-9 (qt qt5)withextra/qtcreator 3.6.0-1on Archlinux with kernel4.3.3-3-ARCH. -
Hi!
QGraphicsView::QGraphicsView(const QGraphicsView &)is just an ordinary copy constructor. You are not allowed to access it due to the design of QObject, see: No Copy Constructor or Assignment Operator.QGraphicsViewPrivateis not part of the public API and thus you shouldn't use it. If you really wanted to you it you would have to include the corresponding private headers.
-
Hi!
QGraphicsView::QGraphicsView(const QGraphicsView &)is just an ordinary copy constructor. You are not allowed to access it due to the design of QObject, see: No Copy Constructor or Assignment Operator.QGraphicsViewPrivateis not part of the public API and thus you shouldn't use it. If you really wanted to you it you would have to include the corresponding private headers.