Мне кажется, что первое, что надо сделать - это widgetControlChannel оформить отдельным классом-наследником от QWidget.
Вот класс наследник, это всё сделано
#include "ui_management_channels.h"
#include "Client_mkpu.h"
namespace Ui {
class management_channels;
}
class management_channels : public Client_mkpu, private Ui::management_channels
{
Q_OBJECT
public:
explicit management_channels(Client_mkpu *parent = 0);
~management_channels();
private slots:
private:
Ui::management_channels *ui_management_channels;
};
//=========================================
management_channels::management_channels(Client_mkpu *parent) :
Client_mkpu(parent),
ui_management_channels(new Ui::management_channels)
{
ui_management_channels->setupUi(this);
}
management_channels::~management_channels()
{
delete ui_management_channels;
}