Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. How to render flash content/(html doc with flash content) using QWebView in windows OS
Forum Update on Monday, May 27th 2025

How to render flash content/(html doc with flash content) using QWebView in windows OS

Scheduled Pinned Locked Moved Qt WebKit
3 Posts 2 Posters 2.2k 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.
  • A Offline
    A Offline
    aashish.lg
    wrote on 20 Dec 2011, 16:01 last edited by
    #1

    Hi,

    I would like to load a html doc that merely brings a youtube flash video content using QWebView.
    My problem is that when I set QWebView->QWidget WindowFlags as Qt::FramelessWindowHint in order to make QWebView->Widget borderless, it doesnot render the flash content on QWebView window. If I am not setting this property(making the widget with border)it goes well Under Windows OS.

    I tried this in Linux , same code works fine with and without border in Linux.
    Please help me how to make it work in Window using frameless window.

    I am not able to post my sample code since it is exceeding the 6000 characters limit.

    Regards
    Ashish

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on 21 Dec 2011, 23:49 last edited by
      #2

      You could boil down the code to a simple test class of two or three dozens of lines to demonstrate the behavior.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aashish.lg
        wrote on 22 Dec 2011, 06:37 last edited by
        #3

        I solved this problem using win32 functions

        LONG lStyle = GetWindowLong(m_objWebView.winId(), GWL_STYLE);
               lStyle &= ~(WS_CAPTION | WS_THICKFRAME | WS_MINIMIZE | WS_MAXIMIZE | WS_SYSMENU);
                SetWindowLong(m_objWebView.winId(), GWL_STYLE, lStyle);
        

        Thanks qt developers.........

        1 Reply Last reply
        0

        1/3

        20 Dec 2011, 16:01

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved