KeineAhnung
23rd May 2014, 07:30
Hi there,
my program is slowly growing and I start getting into problems manage the user input. To structure the program I started to create new windows for special task. So far I managed to communicate between the windows using signals and slots but now I am looking for a method to have a QVector available in several windows.
I already created a support file with functions I need in several forms:
support.h
#ifndef SUPPORT_H
#define SUPPORT_H
#include <QDateTime>
namespace support {
int w20();
int w6();
}
#endif // SUPPORT_H
If I declare the QVector, from a custom class, here, would it be available in all forms that include the support file?
Thanks for looking into this!
my program is slowly growing and I start getting into problems manage the user input. To structure the program I started to create new windows for special task. So far I managed to communicate between the windows using signals and slots but now I am looking for a method to have a QVector available in several windows.
I already created a support file with functions I need in several forms:
support.h
#ifndef SUPPORT_H
#define SUPPORT_H
#include <QDateTime>
namespace support {
int w20();
int w6();
}
#endif // SUPPORT_H
If I declare the QVector, from a custom class, here, would it be available in all forms that include the support file?
Thanks for looking into this!