Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT Pixel data over hovermouse
Qt 6.12 LTS is out! See what's new in the release blog

QT Pixel data over hovermouse

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 538 Views
  • 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.
  • S Offline
    S Offline
    Stevendragoes
    wrote on last edited by Stevendragoes
    #1

    Hello, Newbie question here,
    I have a Qlabel which I set my Pixmap in a video form. Those who know my project, I have timers to get every frame.

    Now I want to get the RGB pixel data and show it on the status bar when I hover my mouse over an image.

    I have looked through the documentation but I am not sure how to implement it? any youtube video or reference examples will be great.

    https://doc.qt.io/qt-5/qimage.html#pixel

    In addition I want to get the X and Y positions to show on the status bar too

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by JKSH
      #2

      Enable mouseTracking() on the QLabel and overwrite QWidget::mouseMoveEvent() to get the current mouse position.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved