Okay, we-teh-ef!
Ich habe nun nichts anderes gemacht, als ein neuen Dialog aus Verzweiflung hinzuzufügen und den an Stelle des "alten" genommen.
Mystischer Art und Weise funktioniert es nun, der einzige Unterschied ist jedoch nur der Name....
Das meine ich wörtlich, selbst vom Design total gleich. Der Code:
|
C-/C++-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
//alter Dialog mit Fehler, Header
#ifndef EXPORTCLASSDIALOG_HPP
#define EXPORTCLASSDIALOG_HPP
#include <QDialog>
namespace Ui
{
class ExportClassDialog;
}
class ExportClassDialog : public QDialog
{
Q_OBJECT
public:
explicit ExportClassDialog(QWidget *parent = 0);
~ExportClassDialog();
private:
Ui::ExportClassDialog *ui;
};
#endif // EXPORTCLASSDIALOG_HPP
|
|
C-/C++-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//neuer Dialog ohne Fehler, Header
#ifndef DIALOG_H
#define DIALOG_H
#include <QDialog>
namespace Ui {
class Dialog;
}
class Dialog : public QDialog
{
Q_OBJECT
public:
explicit Dialog(QWidget *parent = 0);
~Dialog();
private:
Ui::Dialog *ui;
};
#endif // DIALOG_H
|
|
C-/C++-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//alter Dialog mit Fehler, Source
#include "exportclassdialog.hpp"
#include "ui_exportclassdialog.h"
ExportClassDialog::ExportClassDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::ExportClassDialog)
{
ui->setupUi(this);
this->setModal(true);
}
ExportClassDialog::~ExportClassDialog()
{
delete ui;
}
|
|
C-/C++-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//neuer Dialog ohne Fehler, Source
#include "dialog.h"
#include "ui_dialog.h"
Dialog::Dialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::Dialog)
{
ui->setupUi(this);
this->setModal(true);
}
Dialog::~Dialog()
{
delete ui;
}
|
Wie gesagt, lediglich andere Namensgebung. Ich bin einfach nur fasziniert, trotz Bereinigung des Projekts geht es erst jetzt. Das gehört zu den Höhepunkten meiner WTF-Moments.
MfG
Check