Hi all
First of all, thanks for the input! Alas, none of it worked.
I tried something very simple and get exceptions too. So I assume the problem is rooted deeper. I have added a simple widget manipulation to generat0rx.cpp:
#include "generat0rx.h"
#include "qmessagebox.h"
#include <QxtLogger>
#include <QxtBasicFileLoggerEngine>
{
ui.setupUi(this);
//QObject::connect(actionExit, SIGNAL(activated()), this, SLOT(exit_slot()));
//QObject::connect(actionNew_2D_Scene, SIGNAL(activated()), this, SLOT(addScene2D_slot()));
//Start logging
qxtLog->addLoggerEngine("FileLogger", new QxtBasicFileLoggerEngine("log/g0x.log"));
qxtLog->info("Huhu INFO log entry!");
outputTabTextEdit->append("TEST");
}
generat0rX::~generat0rX()
{
}
void generat0rX::exit_slot()
{
msgBox.setText("SLOT: exit_slot triggered");
msgBox.exec();
//qApp->quit();
//qApp->exit();
}
void generat0rX::addScene2D_slot()
{
msgBox.setText("SLOT: addScene2D triggered");
msgBox.exec();
}
#include "generat0rx.h"
#include "qmessagebox.h"
#include <QxtLogger>
#include <QxtBasicFileLoggerEngine>
generat0rX::generat0rX(QWidget *parent, Qt::WFlags flags) : QMainWindow(parent, flags)
{
ui.setupUi(this);
//QObject::connect(actionExit, SIGNAL(activated()), this, SLOT(exit_slot()));
//QObject::connect(actionNew_2D_Scene, SIGNAL(activated()), this, SLOT(addScene2D_slot()));
//Start logging
qxtLog->addLoggerEngine("FileLogger", new QxtBasicFileLoggerEngine("log/g0x.log"));
qxtLog->info("Huhu INFO log entry!");
outputTabTextEdit->append("TEST");
}
generat0rX::~generat0rX()
{
}
void generat0rX::exit_slot()
{
QMessageBox msgBox;
msgBox.setText("SLOT: exit_slot triggered");
msgBox.exec();
//qApp->quit();
//qApp->exit();
}
void generat0rX::addScene2D_slot()
{
QMessageBox msgBox;
msgBox.setText("SLOT: addScene2D triggered");
msgBox.exec();
}
To copy to clipboard, switch view to plain text mode
This line was added in the constructor:
outputTabTextEdit->append("TEST");
outputTabTextEdit->append("TEST");
To copy to clipboard, switch view to plain text mode
and even THIS raises an exception. There must be something fundamentally wrong with the way I call ui elements...(I am using multiple inheritance btw). Just to make sure you get the full picture, here is generat0rx.h as well:
#ifndef GENERAT0RX_H
#define GENERAT0RX_H
#include <QtGui/QMainWindow>
#include "ui_generat0rx.h"
class generat0rX
: public QMainWindow,
private Ui
::generat0rXClass{
Q_OBJECT
public:
generat0rX
(QWidget *parent
= 0, Qt
::WFlags flags
= 0);
~generat0rX();
public slots:
void exit_slot(void);
void addScene2D_slot(void);
private:
Ui::generat0rXClass ui;
};
#endif // GENERAT0RX_H
#ifndef GENERAT0RX_H
#define GENERAT0RX_H
#include <QtGui/QMainWindow>
#include "ui_generat0rx.h"
class generat0rX : public QMainWindow, private Ui::generat0rXClass
{
Q_OBJECT
public:
generat0rX(QWidget *parent = 0, Qt::WFlags flags = 0);
~generat0rX();
public slots:
void exit_slot(void);
void addScene2D_slot(void);
private:
Ui::generat0rXClass ui;
};
#endif // GENERAT0RX_H
To copy to clipboard, switch view to plain text mode
This is getting really frustrating :s
Here is the call stack:
> QtGuid4.
dll!QTextEdit::append(const QString & text
="TEST") Line
2617 + 0x7 bytes C
++ generat0rX.
exe!generat0rX
::generat0rX(QWidget * parent
=0x00000000, QFlags<enum Qt
::WindowType> flags
={...
}) Line
17 + 0x2e bytes C
++ generat0rX.exe!main(int argc=1, char * * argv=0x0079fab0) Line 17 + 0x1d bytes C++
generat0rX.exe!WinMain(HINSTANCE__ * instance=0x01040000, HINSTANCE__ * prevInstance=0x00000000, char * __formal=0x000a2b9a, int cmdShow=1) Line 131 + 0x12 bytes C++
generat0rX.exe!__tmainCRTStartup() Line 547 + 0x2c bytes C
generat0rX.exe!WinMainCRTStartup() Line 371 C
kernel32.dll!76e31194()
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
ntdll.dll!775eb495()
ntdll.dll!775eb468()
> QtGuid4.dll!QTextEdit::append(const QString & text="TEST") Line 2617 + 0x7 bytes C++
generat0rX.exe!generat0rX::generat0rX(QWidget * parent=0x00000000, QFlags<enum Qt::WindowType> flags={...}) Line 17 + 0x2e bytes C++
generat0rX.exe!main(int argc=1, char * * argv=0x0079fab0) Line 17 + 0x1d bytes C++
generat0rX.exe!WinMain(HINSTANCE__ * instance=0x01040000, HINSTANCE__ * prevInstance=0x00000000, char * __formal=0x000a2b9a, int cmdShow=1) Line 131 + 0x12 bytes C++
generat0rX.exe!__tmainCRTStartup() Line 547 + 0x2c bytes C
generat0rX.exe!WinMainCRTStartup() Line 371 C
kernel32.dll!76e31194()
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
ntdll.dll!775eb495()
ntdll.dll!775eb468()
To copy to clipboard, switch view to plain text mode
Bookmarks