QList<double> in QT with Visual Studio add in
<p>I am working on creating a simple List Widget that displays "double" values when a "run" button is clicked.  The widget contains 20 rows and 6 columns.  Right now, I would just like for the values to all be the same number. I have the widget displaying how I want it, however, I am new to C++ and am not sure how to get the values to display in the widget when I click a pushbutton "run".  Here is my code thus far:</p>

<pre><code>qlistdouble.cpp


#include "qlistdouble.h"
#include &lt;QList&gt;
#include &lt;QTableWidgetItem&gt;

Qlistdouble::Qlistdouble(QWidget *parent, Qt::WFlags flags)
    : QMainWindow(parent, flags)
{
    ui.setupUi(this);

}

Qlistdouble::GetNumbers()
{

}


void Qlistdouble::MyClass(QList&lt;double*&gt; *slotString)
{
    connect(ui.getNumber, SIGNAL(clicked()), this, SLOT(clear()));

    for( int row = 0; row &lt; 20; row++ )
    {
        for( int column = 0; column &lt; 6; column++ )

         {
            slotString = new QList&lt;double*&gt;;
            QTableWidgetItem *newItem = new QTableWidgetItem(tr("%1").arg(5));
            ui.tableWidget_values-&gt;setItem(row, column, newItem);
        }
    }

}




qlistdouble.h


#ifndef QLISTDOUBLE_H
#define QLISTDOUBLE_H

#include &lt;QtGui/QMainWindow&gt;
#include "ui_qlistdouble.h"

class Qlistdouble : public QMainWindow
{
    Q_OBJECT

public:
    Qlistdouble(QWidget *parent = 0, Qt::WFlags flags = 0);
    ~Qlistdouble();
    void MyClass(QList&lt;double*&gt; *slotString);


private:
    Ui::QlistdoubleClass ui;
};

#endif // QLISTDOUBLE_H
</code></pre>

<p>I know that this is a simple question, but if someone could give me some suggestions on how to go about this, I would really appreciate it. Thanks in advance.</p>
