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 buttons to Table
Forum Updated to NodeBB v4.3 + New Features

Adding buttons to Table

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 475 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.
  • I Offline
    I Offline
    ikuris
    wrote on last edited by
    #1

    Hello,
    I am trying to add widgets in QTableView's horizontal header to interact with user.
    How can I do that?

    artwawA 1 Reply Last reply
    0
    • I ikuris

      Hello,
      I am trying to add widgets in QTableView's horizontal header to interact with user.
      How can I do that?

      artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

      @ikuris buttons to header? What kind of functionality would you like to achieve?

      For more information please re-read.

      Kind Regards,
      Artur

      I 1 Reply Last reply
      0
      • artwawA artwaw

        @ikuris buttons to header? What kind of functionality would you like to achieve?

        I Offline
        I Offline
        ikuris
        wrote on last edited by
        #3

        @artwaw
        to show pop-up window, to give some additional information about that column.

        artwawA 1 Reply Last reply
        0
        • I ikuris

          @artwaw
          to show pop-up window, to give some additional information about that column.

          artwawA Offline
          artwawA Offline
          artwaw
          wrote on last edited by
          #4

          @ikuris No need for a button, look at the signals of QHeaderView https://doc.qt.io/qt-5/qheaderview.html#signals
          You can get clicks directly from the signal

          You can also, based on those signals, display customised tooltips via toolTip property https://doc.qt.io/qt-5/qwidget.html#toolTip-prop

          For more information please re-read.

          Kind Regards,
          Artur

          1 Reply Last reply
          0
          • I Offline
            I Offline
            ikuris
            wrote on last edited by
            #5

            Thank you.

            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