My MainWindow file is huge. It used to be over 1200 lines of code, but I've since cut it down to about 600 by delegating responsibilities to other classes. Now over a third of the MainWindow file is the constructor, which is a lot of this stuff:

Qt Code:
  1. latticeView = new QGraphicsView(this);
  2. latticeView->setFocusPolicy(Qt::NoFocus);
  3. latticeView->setRenderHint(QPainter::Antialiasing, true);
  4. latticeView->setResizeAnchor(QGraphicsView::AnchorViewCenter);
  5. latticeView->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
  6. latticeView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
  7. latticeView->setViewportUpdateMode(QGraphicsView::FullViewportUpdate);
To copy to clipboard, switch view to plain text mode 

i.e., just setting up all the widgets, the actions, the menus, connecting the signals/slots, etc.

I don't know if this does or does not make sense from a design perspective. I wish it would be nicer. Should I:

(1) leave it; it works fine, anyways, and maybe a huge MainWindow constructor is normal
(2) subclass all of the widgets so that they set themselves up in their own constructors
(3) make some type of class to do all this setup stuff
(4) do something else

I'd really appreciate some advice! Note that I'm not using Qt Designer, and prefer to keep it that way.