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. [Solved] Transparent window setting
Forum Updated to NodeBB v4.3 + New Features

[Solved] Transparent window setting

Scheduled Pinned Locked Moved General and Desktop
4 Posts 1 Posters 2.7k 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.
  • AlicemirrorA Offline
    AlicemirrorA Offline
    Alicemirror
    wrote on last edited by
    #1

    Hi to all

    I have set in the application RC Hobby Stream (on https://projects.forum.nokia.com/rchobbystream) a set of window parameter to the viewer (in the main.cpp source) to hide all the window controls, borders, etc.

    @ // Modifications to remove window attributes
    viewer.setAttribute(Qt::WA_NoSystemBackground);
    viewer.setWindowFlags(Qt::FramelessWindowHint);
    viewer.setAttribute(Qt::WA_OpaquePaintEvent);
    @

    The graphic image of show on the screen has the rounded corners with some transparency elements (using a .png file).

    Does anyone know what attribute I should set to have the window also transparent ?

    Thank you.

    Enrico Miglino (aka Alicemirror)
    Balearic Dynamics
    Islas Baleares, Ibiza (Spain)
    www.balearicdynamics.com

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      discussed "here":http://developer.qt.nokia.com/forums/viewthread/1107

      1 Reply Last reply
      0
      • AlicemirrorA Offline
        AlicemirrorA Offline
        Alicemirror
        wrote on last edited by
        #3

        Thank you very much!!!

        As a matter of fact (anyway I search on the forum before post a problem) I had already tested the sample in the discussion you mentioned above, with no good results.

        My misunderstanding was in

        @ viewer.setStyleSheet("background:transparent;");@

        because I was "sure" :( that it was a definition of the user source, not a part of the method to have the window transparent ...

        Thanks again.

        Enrico Miglino (aka Alicemirror)
        Balearic Dynamics
        Islas Baleares, Ibiza (Spain)
        www.balearicdynamics.com

        1 Reply Last reply
        0
        • ? This user is from outside of this forum
          ? This user is from outside of this forum
          Guest
          wrote on last edited by
          #4

          [quote author="Alicemirror" date="1300270252"]Thank you very much!!!

          As a matter of fact (anyway I search on the forum before post a problem) I had already tested the sample in the discussion you mentioned above, with no good results.
          [/quote]

          you are welcome :) ... been on forum sometime now so just remembered this was already discussed earlier. sometimes it happens, you don't get best results with search and i believe it is being looked into

          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