Guest User

QtGuiApplication1.cpp

a guest
Aug 1st, 2019
10
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "QtGuiApplication1.h"
  2.  
  3. QtGuiApplication1::QtGuiApplication1(QWidget *parent, Qt::WindowFlags flags)
  4.   : QMainWindow(parent, flags)
  5. {
  6.   setupUi(this);
  7.   initConnections();
  8. }
  9.  
  10. QtGuiApplication1::~QtGuiApplication1()
  11. {
  12. }
  13.  
  14. void QtGuiApplication1::initConnections()
  15. {
  16.   connect(actionserialports, SIGNAL(triggered(bool)), this, SLOT(ShowSerialPorts()));
  17. }
  18.  
  19. void QtGuiApplication1::ShowSerialPorts()
  20. {
  21.   Qt::WindowFlags eFlags = windowFlags();
  22.   m_SerialPortsSettings.setWindowFlags(eFlags);
  23.   m_SerialPortsSettings.showNormal();
  24.   m_SerialPortsSettings.raise();
  25. }
RAW Paste Data