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. Adding actions to qlistwidget
Qt 6.11 is out! See what's new in the release blog

Adding actions to qlistwidget

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.5k 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.
  • M Offline
    M Offline
    mahesh
    wrote on last edited by
    #1

    hi... how to add actions to in qlistwidget like menu when i clicked on the reference child actions should roledown...

    1 Reply Last reply
    0
    • I Offline
      I Offline
      irfan.omair
      wrote on last edited by
      #2

      Use context menu thing something like below
      @
      void ListWidget::customContentsMenu( const QPoint &pos )
      {
      QPoint globalPos = this->mapToGlobal(pos);
      menu->exec( globalPos );
      }
      @

      Regards
      Irfan omair

      [edit : @tags added , please do so for readability, Eddy]

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mahesh
        wrote on last edited by
        #3

        how to add the same thing to dockwidget

        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