Results 1 to 2 of 2

Thread: setAcceptsHoverEvents(true) was not declare in this scope

  1. #1
    Join Date
    Apr 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default setAcceptsHoverEvents(true) was not declare in this scope

    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.

    Qt Code:
    1. //----------------------------------------------------------------------------
    2. // Constructor & destructor.
    3.  
    4. SudokuElement::SudokuElement(void) {
    5. m_x = -1;
    6. m_y = -1;
    7. m_finalChoice = -1;
    8. m_choices = new bool[9];
    9. m_focus = false;
    10. m_generated = false;
    11.  
    12. for (int i = 0; i < 9; i++)
    13. m_choices[i] = false;
    14.  
    15. setAcceptsHoverEvents(true);
    16. setFlag(QGraphicsItem::ItemIsFocusable);
    17. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by anda_skoa; 7th April 2014 at 09:49.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: setAcceptsHoverEvents(true) was not declare in this scope

    The function is called setAcceptHoverEvents() not setAcceptsHoverEvents

Similar Threads

  1. Error to declare signal
    By guidupas in forum Qt Programming
    Replies: 2
    Last Post: 14th February 2014, 14:26
  2. How to declare variables in Qt Stylesheets
    By Asfer in forum Qt Programming
    Replies: 3
    Last Post: 30th March 2012, 09:41
  3. Can't declare more than 7 QStrings ?!?!?!
    By ruben.rodrigues in forum Newbie
    Replies: 8
    Last Post: 21st July 2010, 14:42
  4. Why do i need to declare a function as a slot?
    By cbarmpar in forum Qt Programming
    Replies: 2
    Last Post: 31st August 2008, 20:38
  5. declare in designer
    By mickey in forum Newbie
    Replies: 1
    Last Post: 23rd February 2006, 19:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.