Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QT5/EGLFS QLabel still visible after hide()

QT5/EGLFS QLabel still visible after hide()

Scheduled Pinned Locked Moved Mobile and Embedded
eglfsqt5i.mx6linux
4 Posts 2 Posters 2.4k 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.
  • C Offline
    C Offline
    chrgrff1
    wrote on 23 Jun 2015, 18:41 last edited by
    #1

    I'm running Qt 5.3.2 on EGLFS, on an i.MX6 platform.

    I have a gstreamer application streaming video to /dev/fb0 and an overlaid Qt UI on /dev/fb1. Compositing and transparency work fine.

    There are several QLabels which I am using as icons by setting setStyleSheet("background:url(foo)"). That works fine, I can change the icon image at runtime, etc.

    I would like to hide the icons by calling the hide() function, but it isn't working. After I call hide(), isHidden() is true, and isVisible() is false, but the icon still appears on the overlay.

    I have tried various combinations of Window Attributes and stylesheet settings, but I simply can't get hide() to hide the icon. It's like that section of the framebuffer isn't being updated or something.

    Any ideas are appreciated.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      chrgrff1
      wrote on 24 Jun 2015, 17:08 last edited by
      #2

      I should add that if I change the image multiple times with setPixmap(), the previous pixmap remains behind the new one. For example, if I set the pixmap to a picture of the letter "A", then the letter "B", I can see the A behind the B. The documentation says "When the content is changed using any of these functions, any previous content is cleared," but that just doesn't seem to be happening.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        chrgrff1
        wrote on 24 Jun 2015, 22:25 last edited by
        #3

        Turns out that I had WA_TranslucentBackground set on the main window from working on a previous platform.

        Turning it off for the i.MX6 fixes QLabel behavior.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Sriram
          wrote on 2 Sept 2015, 13:58 last edited by Sriram 9 Feb 2015, 13:59
          #4

          Hi,

          I am trying to play video using gstreamer in qt5 video widget example.
          If you have time can you please explain how to implement it, gstreamer video plays properly using gst-launch-1.0 command but when i try to play the video widget example from qt i get buffers dropped warning and the video is not running smoothly or it is delayed with breaks.

          I would also like to know how did u switch between different frame buffers at runtime, like you said gstreamer on fb0 and qt ui on fb1

          the board i am using is freescale imx6q board and the kernel is 3.10.17.
          i built kernel and qt5 with yocto project.

          Best Regards
          Sriraman Ravi

          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