PDA

View Full Version : setAcceptsHoverEvents(true) was not declare in this scope



Ludwig
4th April 2014, 21:56
I tried everything, solve some problems and then, another ones come like this for example, any help please, I thank you in advance I am totally new to Qt.



//----------------------------------------------------------------------------
// Constructor & destructor.

SudokuElement::SudokuElement(void) {
m_x = -1;
m_y = -1;
m_finalChoice = -1;
m_choices = new bool[9];
m_focus = false;
m_generated = false;

for (int i = 0; i < 9; i++)
m_choices[i] = false;

setAcceptsHoverEvents(true);
setFlag(QGraphicsItem::ItemIsFocusable);
}

ChrisW67
5th April 2014, 04:27
The function is called setAcceptHoverEvents() not setAcceptsHoverEvents