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. QT WINCE7 opacity window
Qt 6.11 is out! See what's new in the release blog

QT WINCE7 opacity window

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 245 Views
  • 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
    S_Gura
    wrote on last edited by S_Gura
    #1

    Hi!
    I am using the TORADEX Colibri T30 module with WINCE7.
    I am trying to create a opacity window in QT by setting the window property setWindowOpacity (0.3).
    But the window remains opaque.
    Then I added the SYSGEN_COMPOSITION and BSP_GLES2COMPOSITOR components to the WINCE7 assembly and created a new OS image using the Platform Builder as described here http://download.microsoft.com/download/2/4/A/24A36661-A629-4CE6-A615-6B2910A1367A/Window Compositor Developer's Guide.pdf.
    However, when I upload the image to the Colibri T30, I only see a black screen on which the mouse pointer can move.
    How can I still solve my problem?
    To check the transparency of the window, I use the code provided in the attachment.

    #include "draggablewidget.h"
    #include "ui_draggablewidget.h"
    
    #include <QDebug>
    #include <QMouseEvent>
    
    #include <QBitmap>
    
    DraggableWidget::DraggableWidget( QWidget* parent ) :
        QWidget( parent, Qt::Window | Qt::FramelessWindowHint ),
        ui( new Ui::DraggableWidget ), dx( 0 ), dy( 0 ) {
        ui->setupUi( this );
    
        ui->lbTitle->setText( windowTitle() );
    
        connect( ui->btnQuit, SIGNAL( clicked( bool ) ), qApp, SLOT( quit() ) );
    
        setWindowOpacity( 0.2 );
    }
    
    DraggableWidget::~DraggableWidget() {
        delete ui;
    }
    
    void DraggableWidget::mouseMoveEvent( QMouseEvent* e ) 
    {
        if( e->buttons() | Qt::LeftButton ) 
    	{
            setGeometry(
                pos().x() + ( e->x() - dx ),
                pos().y() + ( e->y() - dy ),
                width(),
                height()
            );
        }
    }
    

    Maybe I have the wrong code?

    Regards
    Sergey Gura

    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