Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt Virtual Keyboard's strange transparency under Debian

Qt Virtual Keyboard's strange transparency under Debian

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
9 Posts 2 Posters 2.5k 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.
  • S Offline
    S Offline
    summerfang
    wrote on last edited by summerfang
    #1

    Hello,

    I'm testing the Qt Virtual keyboard 5.7.

    After building and deployment, the keyboard works properly. The only problem is that the keyboard panel's background is transparent under my debian system(GNOME,KDE, ... tested with all the desktops). If the background before the keyboard pops up was dark, then we can see the keys on the dark background, but if the background was white, we can see nothing but the buttons are still there and can be operated.

    0_1475043435541_1.png

    I also tested it under ubuntu, no such problem occurs.

    And all my other Qt 5.7 built applications have no such problem.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Does it also happen if you build your application with your distribution provided Qt ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Does it also happen if you build your application with your distribution provided Qt ?

        S Offline
        S Offline
        summerfang
        wrote on last edited by
        #3

        @SGaist Hello,

        Thanks for replying. No, so far all my applications are nornal. And all the Qt examples I built myself are also normal. Only have the Qt keyboard problem

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Ok,

          Can you reproduce that with a minimal compilable example ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          S 1 Reply Last reply
          0
          • SGaistS SGaist

            Ok,

            Can you reproduce that with a minimal compilable example ?

            S Offline
            S Offline
            summerfang
            wrote on last edited by
            #5

            @SGaist Hi, if you mean testing the keyboard with a simple example, yes I did that already. Using an example with only on text input field, and also tested with many different Qt5.7 applications with text edit Field, all the same. THe keyboard is transparent above white background.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              summerfang
              wrote on last edited by
              #6

              I almost believe that this problem has something todo with the d->view->setcolor(QtColor(Qt::transparent)) statement in the source code. If I change that, it has different effects under windows, ubuntu and debian. Does some on also use debian to test the virtual keyboard?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                That I don't know and might be not relevant. Ubuntu is a Debian derivative but they implement their own replacement of the X server with Mir.

                There are several window managers for Linux that behaves differently so you may have found something on the ones you are running.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                S 1 Reply Last reply
                0
                • SGaistS SGaist

                  That I don't know and might be not relevant. Ubuntu is a Debian derivative but they implement their own replacement of the X server with Mir.

                  There are several window managers for Linux that behaves differently so you may have found something on the ones you are running.

                  S Offline
                  S Offline
                  summerfang
                  wrote on last edited by
                  #8

                  @SGaist Thank you for your answer and I've found that I could avoid this problem by adding view.setcolor(QtColor(Qt::transparent)) to any application who wants to invoke the keyboard, that must be unormal, so I reported this as a bug.

                  More details are described there:
                  https://bugreports.qt.io/browse/QTBUG-56357

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Thanks for the workaround and report !

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    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