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. Background at corner is not transparent with different OpenGl version.
QtWS25 Last Chance

Background at corner is not transparent with different OpenGl version.

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 457 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.
  • T Offline
    T Offline
    Tabi
    wrote on last edited by
    #1

    I am using a customized widget that is inheriting QWidget and I applied stylesheet to its top level which is as:

    @
    QWidget
    {
    border: 10px solid qlineargradient(spread:reflect, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(117, 170, 255, 255), stop:1 rgba(94, 139, 206, 255));
    border-radius: 15px;
    }@

    The corners here are appearing with radius 15px and remaining corner area is transparent I can say remain background out of that radius is transparent. But it is only on my system. If I build and run the program on other systems the background is not transparent in that they are appearing white and it is odd. What I noticed that my system is having OpenGl 3.3 and all other systems are having 4.2 and my question is that is it due to different version of OpenGl? or any other reason? Any help is appreciable, I have no clue why this is happening.

    Here are some system related info that are same for all systems:
    Qt: 4.8.3 (64bit)
    OS: Windows 7
    IDE: VIsual Studio 2008
    Compiler:MSVC 15.0.30729.1
    Processor:Intel(R) Core(TM) i5-2310 CPU @ 2.90GHz, 2901 Mhz, 4 Core(s), 4 Logical Processor(s)

    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