Quote Originally Posted by Fatla View Post
Qt Code:
  1. QWidget *widget = new QWidget;
  2. Ui_MyForm ui;
  3. ui.setupUi(widget);
  4.  
  5. widget->show();
To copy to clipboard, switch view to plain text mode 
No instance of CustomSlot is created anywhere. You instantiate a plain QWidget and use the non-recommended "direct approach". It should be:
Qt Code:
  1. CustomSlot widget;
  2. widget.show();
To copy to clipboard, switch view to plain text mode