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. I Wanna show swf (flash) in Qt Widget app
QtWS25 Last Chance

I Wanna show swf (flash) in Qt Widget app

Scheduled Pinned Locked Moved General and Desktop
11 Posts 4 Posters 7.0k 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.
  • JeroentjehomeJ Offline
    JeroentjehomeJ Offline
    Jeroentjehome
    wrote on last edited by
    #2

    Hi,
    For Andriod your a bit to fast. It's on the agenda to be released SOON. Qt 5.1 or Qt5.2 if I'm not mistake, but to answer your question how to show a large file in Qt. Take a look at QTextEdit (ai my mistake, it is now the QTextBrowser) widget.
    It is a standard display of text with scrollbar etc capabilities.
    Greetz

    Greetz, Jeroen

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #3

      Hi, Just checked it, but QTextEdit is an input widget so data is able to be changed (if you need it). The QTextBrowser is just to show text.

      Greetz, Jeroen

      1 Reply Last reply
      0
      • B Offline
        B Offline
        belab
        wrote on last edited by
        #4

        I would try it with a "QWebView":https://qt-project.org/doc/qt-5.0/qtwebkit/qwebview.html

        1 Reply Last reply
        0
        • H Offline
          H Offline
          Hadi
          wrote on last edited by
          #5

          thx for reply dear friend...
          but i need to just load a swf byte and show swf (flash) in qt widget...
          i have no requirement to load a big file..just an swf file to show...suppose that you have a 3d gallery in swf format (made by adobe flash ide) and now you wanna load and show it by pass its bytes(not io mode)...
          so is it possible to do it for android or at least for windows platform?

          1 Reply Last reply
          0
          • H Offline
            H Offline
            Hadi
            wrote on last edited by
            #6

            @belab
            thx but do you mean that it is the best way to load swf in widget???
            i listened that there is a class that load it in widget...it's name is QAxWidget
            so do you think QWebView is better than QAxWidget...(i want to load it as bytearray)

            1 Reply Last reply
            0
            • B Offline
              B Offline
              belab
              wrote on last edited by
              #7

              I'm not sure about the best way, but QAxWidget would be an option only for windows.

              1 Reply Last reply
              0
              • H Offline
                H Offline
                Hadi
                wrote on last edited by
                #8

                thx...

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  Hadi
                  wrote on last edited by
                  #9

                  hi
                  i wanna show swf by QAxWidget and when i use it for showing and loading swf in my widget , it throws me an error...
                  this is my code :
                  @
                  #include "mainwindow.h"
                  #include "ui_mainwindow.h"
                  #include "QAxWidget"
                  #include "QTextEdit"
                  #include "QString"
                  #include "QDir"

                  MainWindow::MainWindow(QWidget *parent) :
                  QMainWindow(parent),
                  ui(new Ui::MainWindow)
                  {
                  ui->setupUi(this);
                  QAxWidget *flash = new QAxWidget(this);
                  flash->resize(740, 580);
                  flash->setControl(QString::fromUtf8("{d27cdb6e-ae6d-11cf-96b8-444553540000}"));
                  flash->dynamicCall("LoadMovie(long,string)", 0,QDir::currentPath()+"/file.swf");
                  }

                  MainWindow::~MainWindow()
                  {
                  delete ui;
                  }
                  @

                  and this is error message :
                  bq. undefined reference to 'QAxWidget::QAxWidget(QWidget*,QFlagsQt::WindowType)'

                  really i have no idea for solving that...Qt is very Confusing..!

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    Hadi
                    wrote on last edited by
                    #10

                    yeah i have solved the problem...
                    the solution is in adding below command in .pro file...
                    CONFIG += qaxcontainer
                    thx Qt...

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      brcontainer
                      wrote on last edited by
                      #11

                      ++Hadi++ Thanks!

                      But CONFIG+=qaxcontainer is deprecated

                      In QT5:

                      @QT += axcontainer@

                      QT project: https://github.com/brcontainer/qt-helper

                      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