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. [SOLVED] Need some help on providing a Head's Up Display - When Hovering over a Pushbutton - Display Information Onto a small Popup screen with its on
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Need some help on providing a Head's Up Display - When Hovering over a Pushbutton - Display Information Onto a small Popup screen with its on

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 2.0k 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.
  • R Offline
    R Offline
    roahanramesh
    wrote on last edited by
    #1

    Hello
    First of all, thanks for taking the time to read through my post. I am developing an application for which I need to provide the following feature.

    I have a Locker Section, wherein there are several pushbuttons with locker nos (1-48) marked on it. When I hover over the pushbutton, there should be a small popup window with its snap point on the cursor(mouse), displaying information such as Member ID, Start Date etc.,

    I have done the following tasks.

    1. Subclassed QPushbutton and re-implemented a mypushbutton class with QEVents (Enter and Leave Events ) worked out. I am able to display the pushbutton's names here, but i am unable to pass these names to the main class (called widget).

    2. How do I place a small screen that pops up, snaps one edge on the mouse pointer.

    Your valuable guidance will be truely appreciated.

    Thanks.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DerManu
      wrote on last edited by
      #2

      Maybe you can use a "QToolTip":http://doc.qt.nokia.com/4.7-snapshot/qtooltip.html#details for that. Note that it supports rich text, i.e. different fonts, linebreaks, colors, etc. So should be enough for displaying the data you want.

      Also see the "tool tips example":http://doc.qt.nokia.com/4.7-snapshot/widgets-tooltips.html.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        roahanramesh
        wrote on last edited by
        #3

        thanks for the tip. will venture on that path

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          Maybe it is already enough to call @buttonX->setTooltip("some formated text");@ on each of your button.

          1 Reply Last reply
          0
          • R Offline
            R Offline
            roahanramesh
            wrote on last edited by
            #5

            Thanks for the reply guys. I went down the path suggested by DerManu. It Worked. Thanks a lot. Now whenever I hover over a pushbutton, I am able to put data into a tooltip.

            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