Hello everybody.
There is a problem with showing QLabels.
There is a QPlugin made as dll. It has an array:
Code:
typedef std::vector< TLabel > TLabels; typedef TLabels::iterator TLabelsIter; typedef TLabels::const_iterator TLabelsIterConst;
and so in the plugin's class:
Code:
TLabels labels;
During the work of the plugin, next initialization present:
Code:
TLabel newLabel; newLabel->setFont(newFont); newLabel->setPalette(pal); newLabel->move(10, 10); labels.push_back(pLabel);
The there is a code which simply changes text in the label:
Code:
labels[j]->setText(dataQStr);
The plugin's class has QWidget inheritance.
When the program starts, no labels are seen.
If I add to the plugin's class an element:
And initialize it after with:
Code:
mainWindow.show();
When the program starts, there is a window with NULL information in it.
What do I need to do, in order to show the labels I have in the mainWindow?
or is there any ways to do it without the mainWindow element?
Thanks a lot in advance.