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. Waiting gif transparent on QDialog
Forum Updated to NodeBB v4.3 + New Features

Waiting gif transparent on QDialog

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 205 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.
  • A Offline
    A Offline
    Abdurahman_Gulamkadirov
    wrote on last edited by
    #1

    Hi there! I'm making a simple program that requests to API, while waiting for response, it should show transparent waiting gif with blurry background. When request is sent, I set blur graphics effect to my MainWindow, and call frameless QDialog. On my QDialog, there's just a label that should play the waiting gif. My problem is that background of gif is transparent. I tried some ways: changing style sheet background-color: transparent; of both label and dialog, but there's no result. I also tried palette:

    pal.setColor(QPalette::Background, QColor(0x00,0xff,0x00,0x00));
    setPalette(pal);
    

    but background is black, it doesn't turn into transparent, what do you advice?

    P.S: Sorry, my english is not good

    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