Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-30302

QtQuick1 translucent window becomes completely invisible when using mstsc (16 bit color depth display)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.3.1
    • 5.0.1, 5.2.1
    • GUI: Window management
    • None
    • Windows XP
    • 319e90dcdde7e0867a528105193b0b26d2044f92 (stable, 7.5.2014, 5.3.1)

    Description

      I use mstsc(Microsoft terminal service client) to connect to a machine of Windows XP, and run QtQuick1 programs like this:

      import QtQuick 1.1
      
      Rectangle {
      	width: 100; height: 100
      	color: "red"
      }
      

      Normally it works correct, but when I use 'setAttribute(Qt::WA_TranslucentBackground)', and runs the program remotely, it runs with no window shown.

      QDeclarativeView view;
      QPalette palette = view.palette();
      palette.setColor(QPalette::Base, Qt::transparent);	
      view.setPalette(palette);
      view.setAttribute(Qt::WA_TranslucentBackground);
      view.setWindowFlags(Qt::FramelessWindowHint);	
      view.setSource(QUrl::fromLocalFile("main.qml"));
      view.show();
      

      I can find the program running because it is on the taskbar, but it just has no window shown. I use spy++ and find that the program actually does have a window, which I can't see.

      It runs correctly when I run it locally.(without mstsc)

      Besides, comment 'setWindowFlags(Qt::FramelessWindowHint);' will make the window visible, but I usually use FramelessWindow.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            weiyuemin weiyuemin
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes