Hi everyone,
I have a simulation built with NS3-3.22 and that requires Netanim 3.105
I'm encountering an error while running the NetAnim application and I'm seeking some assistance in resolving it. The error message I'm receiving is :
"QPixmap: Must construct a QApplication before a QPaintDevice."
```
//main.cpp
#include "netanim.h"
using namespace ns3;
using namespace netanim;
int main (int argc, char *argv[])
{
ns3::LogComponentEnable ("AnimatorScene", ns3::LOG_LEVEL_ALL);
ns3::LogComponentEnable ("AnimatorView", ns3::LOG_LEVEL_ALL);
// Other ns-3 logging components
QApplication app (argc, argv);
app.setApplicationName ("NetAnim");
app.setWindowIcon (QIcon (":/resources/netanim-logo.png"));
NetAnim netAnim;
return app.exec ();
}
```
```
//netanim.h
#ifndef NETANIM_H
#define NETANIM_H
#include "common.h"
#include "mode.h"
namespace netanim
{
class NetAnim : public QObject
{
Q_OBJECT
public:
NetAnim ();
QTabWidget * getTabWidget();
private:
typedef std::map <int, Mode *> TabIndexModeMap_t;
QTabWidget * m_tabWidget;
TabIndexModeMap_t m_TabMode;
private slots:
void currentTabChangedSlot (int currentIndex);
};
}
#endif // NETANIM_H
```
I would greatly appreciate any guidance or suggestions on how to resolve this error. Please let me know if you need any additional information.
Thank you in advance for your help!
Best regards,
Samuel