diff --git a/main.cpp b/main.cppindex 8de1d3b..9475502 100644--- a/main.cpp+++ b/main.cpp@@ -4,6 +4,7 @@ #include "pForm.h" #include <QSpacerItem> +QLineEdit *le_filename; int main(int argc, char *argv[]) {@@ -24,7 +25,7 @@ int main(int argc, char *argv[]) psp = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding); pf = new pOGLForm; -+ le_filename = pf->le_path; phLay->addWidget(pwOGL);diff --git a/ogl_paint.cpp b/ogl_paint.cppindex 28e70cc..496b203 100644--- a/ogl_paint.cpp+++ b/ogl_paint.cpp@@ -7,6 +7,8 @@ #include <qcolor.h> #include <math.h> +#include <QLineEdit>+ ogl_paint::ogl_paint(QWidget *pwgt/*= 0*/) : QGLWidget(pwgt) { //load();@@ -91,7 +93,9 @@ void ogl_paint::SlotLines(int nLines) } void ogl_paint::SlotLoad() {- QString F=pf->le_path->text();+ extern QLineEdit *le_filename;++ QString F=le_filename->text(); PathFile=F; QFile file(PathFile);