QwtPlotDict(3)

πŸ“¦ version 5.2.3a, in epel 9, fedora 43, fedora 44

πŸ’– QwtPlotDict(3) πŸ’–

okay bestie, welcome to the Qwt User's Guide ✨ β€” this is the manual page for QwtPlotDict, and it's lowkey one of the most important little gremlins in the whole Qwt plot universe. sit down, get comfy, we're gonna read it together 🫢


🌸 NAME 🌸

QwtPlotDict β€” the dictionary. the keeper. the one holding all your plot items in a neat little pile πŸ’…


✨ SYNOPSIS ✨

#include <qwt_plot_dict.h>

Inherited by QwtPlot.


πŸŽ€ Public Member Functions πŸŽ€

  • QwtPlotDict()
  • ~QwtPlotDict()
  • bool autoDelete() const
  • void detachItems(int rtti = QwtPlotItem::Rtti_PlotItem, bool autoDelete = true)
  • const QwtPlotItemList & itemList() const
  • void setAutoDelete(bool)

πŸ¦‹ Friends πŸ¦‹

  • class QwtPlotItem

🌈 Detailed Description 🌈

so like, it's a dictionary for plot items. that's the whole vibe, no cap πŸ’€

QwtPlotDict organizes plot items in increasing z-order. and if autoDelete() is enabled, all attached items will be deleted in the destructor of the dictionary. yes bestie, it takes them with it 😭 iconic behaviour honestly.

See also:

  • QwtPlotItem::attach()
  • QwtPlotItem::detach()
  • QwtPlotItem::z()

🌸 Constructor & Destructor Documentation 🌸

QwtPlotDict::QwtPlotDict() [explicit]

Constructor ✨

Auto deletion is enabled. she comes out the womb ready to clean up after herself, we love a self-sufficient queen πŸ‘‘

See also:

  • setAutoDelete()
  • attachItem()

QwtPlotDict::~QwtPlotDict()

Destructor πŸ’€

If autoDelete is on, all attached items will be deleted. yeah. everybody goes. it's giving end-of-era energy fr fr.

See also:

  • setAutoDelete()
  • autoDelete()
  • attachItem()

πŸ’… Member Function Documentation πŸ’…

bool QwtPlotDict::autoDelete() const

Returns:

  • true if auto deletion is enabled βœ…

See also:

  • setAutoDelete()
  • attachItem()

void QwtPlotDict::detachItems(int rtti = QwtPlotItem::Rtti_PlotItem, bool autoDelete = true)

Detach items from the dictionary 🫑

Parameters:

  • rtti β€” In case of QwtPlotItem::Rtti_PlotItem detach all items, otherwise only those items of the type rtti.
  • autoDelete β€” If true, delete all detached items πŸ—‘οΈ

const QwtPlotItemList & QwtPlotDict::itemList() const

A QwtPlotItemList of all attached plot items πŸŽ€

⚠️ Use caution when iterating these lists, as removing/detaching an item will invalidate the iterator. Instead you can place pointers to objects to be removed in a removal list, and traverse that list later. bestie please do not rawdog the iterator while mutating the list, it will not end well 😭

Returns:

  • List of all attached plot items.

void QwtPlotDict::setAutoDelete(bool autoDelete)

En/Disable Auto deletion βš™οΈ

If Auto deletion is on, all attached plot items will be deleted in the destructor of QwtPlotDict. The default value is on ✨

See also:

  • autoDelete()
  • attachItem()

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Qwt User's Guide from the source code. (doxygen really said "I wrote this, not a human, and I'm not sorry" πŸ’…)


and that's the whole page, bestie!! πŸŽ€ this was Version 5.2.3, dated Tue Nov 20 2012 β€” yeah she's a vintage queen from 2012 and she still slays 🌈 mwah, love u, go attach some items responsibly 🫢✨

πŸ“¦ where this page comes from