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. How to blur everything below widget?
Forum Updated to NodeBB v4.3 + New Features

How to blur everything below widget?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 356 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.
  • I Offline
    I Offline
    IHatePython
    wrote on last edited by
    #1

    Hi, i am trying to blur whole layer of widgets, i mean, i want to create transparent label and blur effect on it which will be blurring everything below this label. Is it possible to do?

    I've done some QLabel animations with blur on it and jeez, how inefficient is it! 5 QLabels consume ~20% cpu. Why is it happening? Maybe putting on every QLabel blur is itself inefficient and there are other, better ways to do it? Thanks.

    Cheers!

    J.HilkJ 1 Reply Last reply
    0
    • I IHatePython

      Hi, i am trying to blur whole layer of widgets, i mean, i want to create transparent label and blur effect on it which will be blurring everything below this label. Is it possible to do?

      I've done some QLabel animations with blur on it and jeez, how inefficient is it! 5 QLabels consume ~20% cpu. Why is it happening? Maybe putting on every QLabel blur is itself inefficient and there are other, better ways to do it? Thanks.

      Cheers!

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @IHatePython QWidgets are not meant for such heavy/fancy tasks.

      You should either use QML, QOpenGLWidget or the Graphics View Framework section of QWidgets

      Those will use the GPU for drawing wich will reduce the cost of blur dramatically as the cpu is not designed for this kind of task


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      2
      • I Offline
        I Offline
        IHatePython
        wrote on last edited by
        #3

        Oh alright, in that case i will use Graphics View. Still no idea how to blur everything below some widget haha.
        Thanks!

        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