How to access QStringList present in 1 class in all other the remaning classes?
Unsolved
General and Desktop
-
i have a QStringList in 1 class
completer.cpp
#include "completer.h" Completer::Completer(QObject *parent) : QObject(parent) { } Completer::~Completer() { }
completer.h
#pragma once #include <QObject> class Completer : public QObject { Q_OBJECT public: Completer(QObject *parent); ~Completer(); QStringList global_completer_list; };
i also have 3 other Dialog classes, all of the dialogs contain QLineedits , one of the class is named as car.h and car.cpp, so , my question is how do i create an object of completer class and access the QStringlist of completer class in all another classes, i am having syntax problems.