PDA

View Full Version : List selector doesnt become visiable



shiranraviv
15th November 2009, 18:09
Hi,

I wrote this class:


class MyWidget: public QWidget
{
Q_OBJECT
public:
MyWidget(char *items[], int nitems,QWidget *parent);
int Is_Clicked;

private slots:
void itemClicked(QListWidgetItem *item);

private:
QListWidget *m_myListWidget;

};

Which is a list selector widget, and i want to show it with the command show()
in my main function.
It does not react to his show function,
however if i put another widget afterwards (let say a text input widget)
its shown on screen...

Is there any option to see it right after the list selector show function?

thank you

aamer4yu
16th November 2009, 04:41
How are you calling it ?

shiranraviv
16th November 2009, 06:59
I call it in another class that use this class,
And im calling it (after the declare it) with the name of the class var dot show().

Name_Of_Var->show();

what im doing wrong?