kdk::KComboBoxWidget(3)

๐Ÿ“ฆ version 3.0.1.2, in arch rolling, ubuntu resolute, ubuntu stonking

๐Ÿ’– NAME ๐Ÿ’–

kdk::KComboBoxWidget โ€” bestie, it's a whole widget, and it lives in the kdk namespace ๐ŸŽ€ (that's manual page kdk::KComboBoxWidget(3) if you're keeping receipts)


โœจ SYNOPSIS โœจ

Okay so first thing you need to know, no cap:

Inherits QWidget.

That's the whole vibe. It's a QWidget underneath, so all that Qt parent energy is inherited, periodt. ๐Ÿ’…

๐ŸŒธ Signals ๐ŸŒธ

  • void comBoxWidgetClicked () โ€” it yells this at you when the combobox widget gets clicked. That's the signal, that's the whole thing ๐Ÿซถ

๐Ÿฆ‹ Public Member Functions ๐Ÿฆ‹

  • KComboBoxWidget (QWidget *parent=nullptr) โ€” the constructor, and yes the parent defaults to nullptr, so you can absolutely make one with no parent like the independent main character it is ๐Ÿ‘‘
  • void setStringList (QStringList list) โ€” ่ฎพ็ฝฎcombobox็š„้€‰้กนๅˆ—่กจ (sets the combobox's option list, iykyk)
  • QStringList getChosenList () โ€” ่Žทๅ–้€‰ไธญ็š„ๅˆ—่กจ (grabs the list of what got chosen โœจ)
  • void setMainText (QString text) โ€” ่ฎพ็ฝฎไธปๆ–‡ๆœฌ (sets the main text, literally what it says)
  • QMenu * menu () โ€” ่Žทๅ–ๅผนๅ‡บ่œๅ• (gets the popup menu, and it hands you a QMenu * pointer, not a copy, so be normal about it)

๐Ÿงš Protected Member Functions ๐Ÿงš

These are the protected ones, so they're lowkey doing their own thing in the backstage area of the class ๐Ÿ’œ

  • void mouseReleaseEvent (QMouseEvent *event)
  • void mousePressEvent (QMouseEvent *event)
  • void leaveEvent (QEvent *e)
  • void enterEvent (QEvent *e)
  • void paintEvent (QPaintEvent *event)

๐ŸŒˆ Member Function Documentation ๐ŸŒˆ

๐Ÿ’– QStringList kdk::KComboBoxWidget::getChosenList () ๐Ÿ’–

่Žทๅ–้€‰ไธญ็š„ๅˆ—่กจ โ€” it gives you back the list of selected stuff. Iconic behaviour, fr fr.

Returns

(the original doesn't spell out a return description here, bestie โ€” it just says Returns and leaves it at that ๐Ÿ™ˆ)

๐ŸŽ€ QMenu * kdk::KComboBoxWidget::menu () ๐ŸŽ€

่Žทๅ–ๅผนๅ‡บ่œๅ• โ€” it gets you that popup menu. Obsessed. ๐Ÿ“

Returns

(again, the source just says Returns with nothing after it โ€” we're keeping it 100% honest here ๐Ÿ˜ญ)

โญ void kdk::KComboBoxWidget::setMainText (QString text) โญ

่ฎพ็ฝฎไธปๆ–‡ๆœฌ โ€” sets the main text. Slay. โœจ

Parameters

  • text

๐Ÿฆ‹ void kdk::KComboBoxWidget::setStringList (QStringList list) ๐Ÿฆ‹

่ฎพ็ฝฎcombobox็š„้€‰้กนๅˆ—่กจ โ€” sets the option list for the combobox. This is the one that actually gives the thing something to show, and honestly? Ate. ๐Ÿ’…

Parameters

  • list

๐Ÿ’œ Author ๐Ÿ’œ

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code.

Not a human author, not a group chat, just Doxygen doing its little automatic thing and taking full credit ๐Ÿค–โœจ we respect it.


And that's the whole page, bestie โ€” brought to you by LIBKYSDK-APPLICATIONS, Version version:3.0, straight out of the kdk::KComboBoxWidget(3) manual. Go build something cute with it ๐Ÿซถ๐Ÿ’–โœจ

๐Ÿ“ฆ where this page comes from