Results 1 to 2 of 2

Thread: Difference between attach and set visible

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    165
    Thanked 2 Times in 2 Posts

    Default Difference between attach and set visible

    Hello!

    I come to notice that, in putting some items on a plot (some QwtPlotCurve into a QwtPlot, for instance), there doesn't seem to be any visible difference between making an item appear on the screen by calling QwtPlotItem::attach(*) or QwtPlotItem::setVisible(true), or by making it hide by calling QwtPlotItem::detach() or QwtPlotItem::setVisible(false).

    So I know that calling setVisible without previous attach is fruitless, but is there actually a difference in calling one instead of the other when I simply want to make an item show or hide in a plot?

    Thanks,

    Momergil
    May the Lord be with you. Always.

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,326
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 880 Times in 828 Posts

    Default Re: Difference between attach and set visible

    For instance the legend does not take care of the visibility state of an item.

    Uwe

  3. The following user says thank you to Uwe for this useful post:

    Momergil (26th May 2014)

Similar Threads

  1. Replies: 3
    Last Post: 2nd January 2018, 14:04
  2. attach libraries to exe
    By szisziszilvi in forum Qt Programming
    Replies: 2
    Last Post: 20th April 2011, 15:23
  3. QSharedMemory won't attach
    By MattPhillips in forum Qt Programming
    Replies: 3
    Last Post: 27th November 2009, 16:45
  4. Replies: 3
    Last Post: 16th May 2009, 11:16

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.