Results 1 to 2 of 2

Thread: Transparent Qt Application in RHEL 6.6 64 bit

  1. #1
    Join Date
    Jun 2015
    Posts
    3
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Transparent Qt Application in RHEL 6.6 64 bit

    Hi,

    I have created a simple qt transparent application in qt 5.2.1.

    The application works fine in ubuntu 12.04 32 bit operating system. When the same application is executed on RHEL 6.6 64 bit, the result is that I am getting a black background.

    Can anyone please help me to create a simple qt transparent application on rhel 6.6 (qt 5.2.1)

    The code snippet is as below:

    setWindowFlags(Qt::CustomizeWindowHint | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
    setAttribute(Qt::WA_TranslucentBackground);

    Thanks in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Transparent Qt Application in RHEL 6.6 64 bit

    Since you are using the same application code with the same Qt version, you will need to narrow down the differences between the two systems.

    First, make sure Qt is build with the same options on both systems.
    Then maybe check if you see the problem on the working machine if you run the same windowing system as on the non-working machine.
    Or even check without windowing system, e.g. plain X-server running just the one application.

    There could also be differences in driver or graphics hardware.

    Cheers,
    _

Similar Threads

  1. QT Framework in RHEL 5
    By agoswami in forum Installation and Deployment
    Replies: 16
    Last Post: 31st March 2012, 15:40
  2. How to install qwt with qt4 on RHEL 6?
    By sumit11 in forum Newbie
    Replies: 2
    Last Post: 7th March 2011, 23:50
  3. Deploying Qt 4.5.1 Application on RHEL 5.. Pls Help
    By swamyonline in forum Installation and Deployment
    Replies: 0
    Last Post: 28th June 2009, 11:43
  4. Qt 4.2.2 not installing in RHEL 9
    By deepakn in forum Installation and Deployment
    Replies: 3
    Last Post: 12th December 2007, 11:20
  5. Replies: 3
    Last Post: 8th December 2006, 18:51

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.