Hi All,
I have a problem in QT Designer. And i do not have the right words to address my problem. So please apologize if i tell anything wrong.
void ColorPref::High_Range()
{
this->Obj_Dec();
hr->setPaletteBackgroundColor(color_hr);
ok->setEnabled(TRUE);
}
void ColorPref::High_Range()
{
this->Obj_Dec();
hr->setPaletteBackgroundColor(color_hr);
ok->setEnabled(TRUE);
}
To copy to clipboard, switch view to plain text mode
void ColorPref::Obj_Dec()
{
this, "color dialog" );
}
void ColorPref::Obj_Dec()
{
QColor color_hr = QColorDialog::getColor(
QColor(),
this, "color dialog" );
}
To copy to clipboard, switch view to plain text mode
These are two functions. Obj_Dec() is a function that declares the QColor object.
And I am calling it from the function High_Range();
It gives the following error
.ui/../ColorPref.ui.h: In member function `virtual void ColorPref::High_Range()':
.ui/../ColorPref.ui.h:27: error: `color_hr' undeclared (first use this function).ui/../ColorPref.ui.h:27: error: (Each undeclared identifier is reported only on
Can anyone plz tell me as to why this is happening and hence solve the error.
Note :- Obj_Dec() is Public
Thanks and Regards
Kenny
Bookmarks