Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Handling Edit Menu Items (Cut, Copy, Paste, etc.) with multiple widgets
Forum Updated to NodeBB v4.3 + New Features

Handling Edit Menu Items (Cut, Copy, Paste, etc.) with multiple widgets

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 976 Views 1 Watching
  • 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.
  • G Offline
    G Offline
    gkroeger
    wrote on last edited by
    #1

    I have an application in which the main windows have two widgets than can receive edit actions, depending on where the focus is. One is a QPlainTextEdit, the other is a custom window displaying waveforms. I am wondering what the "best" or "official" way to deal with this is?

    I can implement an action handler in the main window that directs the actions to the widget with current focus. I would also have to handle enabling or disabling the associated menu item depending on whether the widget with focus has any selection (QPlainText Edit provides a signal for this).

    Is there a better way to do this, perhaps entirely with signals and slots directly to the widgets?

    Any suggestions or examples would be very helpful.

    Regards, Glenn

    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