How to "make a copy of QDesigner form"
-
I do not like to reinvent the wheel...
I like to
duplicate submenu "action" - Configure _Extended.reuse the original submenu dialog code and make a copy / duplicate of the original dialog form
I can easy make copies of files, but I like to learn how to do this by changing function parameters ,. constructor etc,
Is there a sample / guide to follow ?
At least conceptually .I have few issues
The original subemu processing - C++ code and form - was not build using QTDesigner , hence I cannot just use "go to slot " option to debug (trace / copy) the original code and also to add the new submeny.I was hoping I can modify this original code
#include "ui_mainwindow_Serial.h" #include "console.h" #include "settingsdialog.h" #include <QLabel> #include <QMessageBox> //! [0] MainWindow_Serial::MainWindow_Serial(QWidget *parent) : QMainWindow(parent), m_ui(new Ui::MainWindow_Serial), m_status(new QLabel), m_console(new Console), m_settings(new SettingsDialog), //! [1] m_serial(new QSerialPort(this))
something like
#include "ui_mainwindow_Serial_Extended .h" #include "console.h" #include "settingsdialog_Ext.h" #include <QLabel> #include <QMessageBox> //! [0] MainWindow_Serial::MainWindow_Serial(QWidget *parent) : QMainWindow(parent), m_ui(new Ui::MainWindow_Serial), m_status(new QLabel), m_console(new Console), m_settings(new SettingsDialog_Extended ), //! [1] m_serial(new QSerialPort(this))
I can mange to duplicate the original form, but I could use help to duplicate / modify exiting dialog. I understand I just cannot copy the cpp/h files in QT / C++.
-
I do not like to reinvent the wheel...
I like to
duplicate submenu "action" - Configure _Extended.reuse the original submenu dialog code and make a copy / duplicate of the original dialog form
I can easy make copies of files, but I like to learn how to do this by changing function parameters ,. constructor etc,
Is there a sample / guide to follow ?
At least conceptually .I have few issues
The original subemu processing - C++ code and form - was not build using QTDesigner , hence I cannot just use "go to slot " option to debug (trace / copy) the original code and also to add the new submeny.I was hoping I can modify this original code
#include "ui_mainwindow_Serial.h" #include "console.h" #include "settingsdialog.h" #include <QLabel> #include <QMessageBox> //! [0] MainWindow_Serial::MainWindow_Serial(QWidget *parent) : QMainWindow(parent), m_ui(new Ui::MainWindow_Serial), m_status(new QLabel), m_console(new Console), m_settings(new SettingsDialog), //! [1] m_serial(new QSerialPort(this))
something like
#include "ui_mainwindow_Serial_Extended .h" #include "console.h" #include "settingsdialog_Ext.h" #include <QLabel> #include <QMessageBox> //! [0] MainWindow_Serial::MainWindow_Serial(QWidget *parent) : QMainWindow(parent), m_ui(new Ui::MainWindow_Serial), m_status(new QLabel), m_console(new Console), m_settings(new SettingsDialog_Extended ), //! [1] m_serial(new QSerialPort(this))
I can mange to duplicate the original form, but I could use help to duplicate / modify exiting dialog. I understand I just cannot copy the cpp/h files in QT / C++.