Hi, my problem is to use the QSerialDevice in my Gui. Functions,constructors they are need QObject "parameters" but in my class in constructor I have QWidget

Qt Code:
  1. #include "src/qserialdeviceenumerator/serialdeviceenumerator.h"
  2.  
  3. canteen::canteen(QWidget *parent) :
  4. QWidget(parent),
  5. ui(new Ui::canteen)
  6. {
  7. this->m_sde= new SerialDeviceEnumerator(this);
  8.  
  9. ui->setupUi(this);
  10.  
  11. }
To copy to clipboard, switch view to plain text mode 
when i build ... is ":: error: collect2: ld returned 1 exit status"
And I have a few questons
1.Is it posible to use QSerialDevice in Gui ??
2. Can anybody could help ??
Sorry for my english