Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Polish
  4. [SOLVED] Dynamiczne menu
QtWS25 Last Chance

[SOLVED] Dynamiczne menu

Scheduled Pinned Locked Moved Polish
1 Posts 1 Posters 838 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    savior
    wrote on last edited by
    #1

    Witam,
    Nie bardzo wiem jak to urgyść. Podczas uruchamiania aplikacji ładuję pluginy i na ich podstawie chciałbym zbudować menu w np QTreeView. Lecz potrzebuję takiego mechanizmu, aby po cliknięciu w pozycję tego menu wykonać zdarzenie dla danego pluginu.
    Prosiłbym Was o pomoc bo nie wiem jak to poprawnie zrobić (Qabstractitemmodel z QAction ?).

    EDIT:
    Ok udało mi się. QStandardItem::setData wrzuciłem QObject (plugin) a w click'u rzuciłem nim na interface pluginu.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved