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. Is this possible with Qt?
Qt 6.11 is out! See what's new in the release blog

Is this possible with Qt?

Scheduled Pinned Locked Moved Unsolved General and Desktop
c++
3 Posts 3 Posters 1.1k Views 2 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.
  • tQtQT Offline
    tQtQT Offline
    tQtQ
    wrote on last edited by A Former User
    #1

    I am looking for something almost exactly like the tree widget but where I'm also able to right click an entry and select options like you would by right clicking a file on your drive. Is this feasible with Qt?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome
      If you mean you can right click a tree
      item and get context menu, then yes :)

      http://www.bogotobogo.com/Qt/Qt5_QTreeWidget.php
      (there are also tree views)
      and for right menu
      http://stackoverflow.com/questions/14237020/qtreewidget-right-click-menu

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        You're looking for contextMenuPolicy and customContextMenuRequested

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        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