|
Hello,
Trying to add my own form using Qt creator.
I get the warning message when I open "qg_divideoptions.cpp" in a viewing pane.
Do I need to include the file in another function?
Regards
...\librecad\src\ui\forms\qg_divideoptions.ui
...\librecad\src\ui\forms\qg_divideoptions.h
...\librecad\src\ui\forms\qg_divideoptions.cpp
In the viewing pane, with the "qg_divideoptions.cpp" file I get:-
Warning: This file is not part of any project. ... ...
...\librecad\src\actions\rs_actionmodifycut.h
private:
QDialog mydialog;
\librecad\src\actions\rs_actionmodifycut.cpp
QG_DivideOptions mydialog( this );
if ( QDialog::Accepted == mydialog.exec() )
{
// do something with the result
qDebug << "done";
}
...\librecad\src\ui\forms\qg_divideoptions.h
#ifndef QG_DIVIDEOPTIONS_H
#define QG_DIVIDEOPTIONS_H
#include <QDialog> #include <QWidget> #include "ui_qg_divideoptions.h"
class QG_DivideOptions : public QDialog, public Ui::QG_DivideOptions
{
Q_OBJECT
public:
QG_DivideOptions(QWidget* parent = 0); //, bool modal, Qt::WindowFlags fl = 0
~QG_DivideOptions() = default;
);
#endif
...\librecad\src\ui\forms\qg_divideoptions.cpp
#include "qg_divideoptions.h"
#include <QDialog> #include <QWidget>
#include "ui_qg_divideoptions.h"
QG_DivideOptions::QG_DivideOptions(QWidget* parent) //, bool modal, Qt::WindowFlags fl
: QDialog(parent) //, fl
{
setModal( true );
setupUi( this );
}
|