I have got several classes which are derived from QWidget
Also I have template function like this
    template<typename T>
    QWidget* create(){return static_cast<QWidget*>(new T());}
now I want to create container:
    QMap<int, className> classes // it is not compiling 
so, that I can use the container values as function template type:
    QWidget* widget = create<classes[i]>();
How should I do it?
 
     
     
    