Results 1 to 14 of 14

Thread: [QtEmbedded] Translucent QGraphicsView with animated child widgets

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Posts
    72
    Thanks
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default [QtEmbedded] Translucent QGraphicsView with animated child widgets

    Hi,

    I'm working with Qt 4.6 and I've a QGraphicsView with some animated QGraphicsItems (I'm using QML). I want to make the window background transparent, so I can see the desktop under it.

    I've tried this piece of code:

    Qt Code:
    1. MainWindow::MainWindow(QWidget* parent)
    2. : QmlView(parent)
    3. {
    4. this->setWindowFlags(Qt::FramelessWindowHint);
    5. this->setAttribute(Qt::WA_NoSystemBackground);
    6. this->viewport()->setAutoFillBackground(false);
    7. }
    To copy to clipboard, switch view to plain text mode 

    It works, but only for static widgets: the animated widget paints a trail on the window surface.

    So, how can I erase this trail?
    For example, how does KDE work with desktop semi-transparent animated widgets?
    Last edited by zuck; 5th January 2010 at 13:03.

Similar Threads

  1. How to get the child widgets from a Widget?
    By prykHetQuo in forum Qt Programming
    Replies: 2
    Last Post: 29th January 2009, 13:26
  2. Child Widgets In MainWindow
    By RY in forum Newbie
    Replies: 3
    Last Post: 4th October 2008, 08:39
  3. QGraphicsView Handling Child Event
    By arjunasd in forum Qt Programming
    Replies: 1
    Last Post: 9th August 2007, 00:32
  4. setClipPath on child widgets.
    By bunjee in forum Qt Programming
    Replies: 9
    Last Post: 27th May 2007, 19:12
  5. initialize child widgets within parent?
    By ucomesdag in forum Newbie
    Replies: 6
    Last Post: 6th June 2006, 08:11

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.