When I create classes which implement QWidget, QGraphicsView, QGraphicsItem etc… I always just include QtGui instead of QtWidget, QGraphicsView etc… is this bad practice? Is there any performance cost? Is build time longer because of this?
When I create classes which implement QWidget, QGraphicsView, QGraphicsItem etc… I always just include
Share
If the
QtGuiheader includes all other headers, then compile time will be longer, as the compilers pre-processor has to read more files and the compiler itself will have more classes/structures to parse and keep track of. However, linking time and more importantly runtime will not be affected.