Results 1 to 2 of 2

Thread: Cant override setVisible for a custom Widget

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Cant override setVisible for a custom Widget

    I want to have control over setVisible method.

    I have a public
    Qt Code:
    1. virtual void setVisible(bool visible)
    To copy to clipboard, switch view to plain text mode 
    and
    Qt Code:
    1. ((QWidget*)this)->setVisible(visible);
    To copy to clipboard, switch view to plain text mode 

    now, i have recursive call (and stack overflow error)
    Any help ? Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Cant override setVisible for a custom Widget

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Custom Property On Custom Widget
    By Ashutosh2k1 in forum Qt Programming
    Replies: 29
    Last Post: 28th October 2014, 12:16
  2. Replies: 1
    Last Post: 23rd June 2011, 23:09
  3. Replies: 1
    Last Post: 6th May 2010, 10:09
  4. Replies: 1
    Last Post: 5th November 2006, 23:50
  5. Replies: 9
    Last Post: 8th May 2006, 14:21

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.