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. Shows gray background of application after the resize application window
Forum Updated to NodeBB v4.3 + New Features

Shows gray background of application after the resize application window

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 719 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.
  • Y Offline
    Y Offline
    yhodage
    wrote on last edited by
    #1

    Hi ,

    i am creating the hoops widget from Qwidget. i am transferring the my application from 3.0 to 4.8 qt.
    i have seen that the same code is not working in 4.8 .
    whenever i resize my application window it shows first hoops background and after that it shows the gray background.
    ex
    class HoopsWidget:public QWidget

    i have set the some setting in the HoopsWidge constructor but it does not work
    setAttribute(Qt::WA_TranslucentBackground);
    setAttribute(Qt::WA_NoSystemBackground);
    setBackgroundMode (Qt::NoBackground);

    this problem is not occur in qt 3.0 library. but on qt 4.8 same code is showing the above mentioned behavior.
    Please help me as i am stuck with this problem

    Thanks

    1 Reply Last reply
    0
    • IamSumitI Offline
      IamSumitI Offline
      IamSumit
      wrote on last edited by
      #2

      Try this,
      setAttribute( Qt::WA_TranslucentBackground, true );
      setAttribute(Qt::WA_NoSystemBackground, true);
      setBackgroundMode (Qt::NoBackground, true);

      Be Cute

      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