Results 1 to 2 of 2

Thread: QAxWidget hide other widgets in it's area

  1. #1
    Join Date
    Jul 2008
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QAxWidget hide other widgets in it's area

    I wrote this code : Playing Flash and displaying text on it.
    It worked well in 4.3 but, I can't see the text in 4.4
    It's like that QAxWidget make other widgets in it's area hide.

    help me to display flash and text in same area.

    Qt Code:
    1. QAxWidget *back = new QAxWidget(this);
    2. back->setControl("{D27CDB6E-AE6D-11cf-96B8-444553540000}"); // Flash Player
    3. back->setProperty("Movie", QDir("test.swf").absolutePath());
    4.  
    5. QLabel *textLabel = new QLabel(text, this);
    6. textLabel->setAlignment(Qt::AlignCenter);
    7.  
    8. back->setGeometry(0, 0, 112, 57);
    9. textLabel->setGeometry(0, 0, 112, 57);
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QAxWidget hide other widgets in it's area

    First of all, I would recommend using layouts instead of hard coded geometries. Anyway, does it have any effect if you raise() the label? Alternatively you could create the label as child of the QAxWidget.
    J-P Nurmi

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.