Hi to all!
Can somene please tell me how to access variable appSettings, declared in main.cpp:
// qt includes
#include <QtGui>
#include <QApplication>
#include <QPlastiqueStyle>
// custom includes
#include "cmainwindow.h"
#include "globals.h"
#include "CApplicationSettings.h"
int main(int argc, char *argv[])
{
....
CApplicationSettings appSetings(strIniFileName,
qApp); // sets up app settings
....
}
// qt includes
#include <QtGui>
#include <QApplication>
#include <QPlastiqueStyle>
// custom includes
#include "cmainwindow.h"
#include "globals.h"
#include "CApplicationSettings.h"
int main(int argc, char *argv[])
{
....
CApplicationSettings appSetings(strIniFileName,
QSettings::IniFormat,
qApp); // sets up app settings
....
}
To copy to clipboard, switch view to plain text mode
from class, that is defined through
#include "cmainwindow.h"
#include "cmainwindow.h"
To copy to clipboard, switch view to plain text mode
in main.cpp? Is this possible?
Bookmarks