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 use qwebkitplatformplugin?
Forum Updated to NodeBB v4.3 + New Features

How to use qwebkitplatformplugin?

Scheduled Pinned Locked Moved Qt WebKit
20 Posts 2 Posters 5.1k Views 1 Watching
  • 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.
  • B Offline
    B Offline
    brcontainer
    wrote on last edited by
    #1

    how to use qwebkitplatformplugin in a QWebView?

    I have the following code:

    @#include <QWebKitPlatformPlugin>

    MainWindow::MainWindow(QWidget *parent, bool new) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
    {
    ui->setupUi(this);

    webView = new QWebView;
    ui->webViewLay->addWidget(webView);
    webView->setHtml("<p>test</p>");
    

    }@

    but found no example of how to use extensions.

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

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

      Within this API has several extensions such as SpellChecker and Notifications, I would like to know how to use in my WebView.

      How to use this class? :

      @class QWebKitPlatformPlugin {
      public:
      virtual ~QWebKitPlatformPlugin() {}

      enum Extension {
          MultipleSelections,
          Notifications,
          Haptics,
          TouchInteraction,
          FullScreenVideoPlayer,
          SpellChecker
      };
      
      virtual bool supportsExtension(Extension) const = 0;
      virtual QObject* createExtension(Extension) const = 0;
      

      };@
      note: There is no documentation on the official website.

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

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

        could anyone give a help?

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

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

          Please?

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

          1 Reply Last reply
          0
          • A Offline
            A Offline
            AcerExtensa
            wrote on last edited by
            #5

            Hello Guilherme,
            did you get it to work? Have same trouble to load it....

            God is Real unless explicitly declared as Integer.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              AcerExtensa
              wrote on last edited by
              #6

              Hello Guilherme,
              did you get it to work? Have same trouble to load it....

              God is Real unless explicitly declared as Integer.

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

                AcerExtensa this work only VisualStudio (maybe only in vs2013). MingW don't have support :(

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

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

                  AcerExtensa this work only VisualStudio (maybe only in vs2013). MingW don't have support :(

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

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    AcerExtensa
                    wrote on last edited by
                    #9

                    I have compiled it as static plugin and it works now. MinGW or VS is not relevant

                    God is Real unless explicitly declared as Integer.

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      AcerExtensa
                      wrote on last edited by
                      #10

                      I have compiled it as static plugin and it works now. MinGW or VS is not relevant

                      God is Real unless explicitly declared as Integer.

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

                        AcerExtensa :) You using SpellCheck? Work fine?

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

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

                          AcerExtensa :) You using SpellCheck? Work fine?

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

                          1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            AcerExtensa
                            wrote on last edited by
                            #13

                            It has some BUGs, but it looks like internal WebKit or Qt BUGs. But main functionality works fine.

                            God is Real unless explicitly declared as Integer.

                            1 Reply Last reply
                            0
                            • A Offline
                              A Offline
                              AcerExtensa
                              wrote on last edited by
                              #14

                              It has some BUGs, but it looks like internal WebKit or Qt BUGs. But main functionality works fine.

                              God is Real unless explicitly declared as Integer.

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

                                I use QT5.4 with MingW 4.9.1. Could you explain how you compiled the static plugin?

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

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

                                  I use QT5.4 with MingW 4.9.1. Could you explain how you compiled the static plugin?

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

                                  1 Reply Last reply
                                  0
                                  • A Offline
                                    A Offline
                                    AcerExtensa
                                    wrote on last edited by
                                    #17

                                    Sure. I'll be back on wednesday(18.02) and will explain it.

                                    God is Real unless explicitly declared as Integer.

                                    1 Reply Last reply
                                    0
                                    • A Offline
                                      A Offline
                                      AcerExtensa
                                      wrote on last edited by
                                      #18

                                      Sure. I'll be back on wednesday(18.02) and will explain it.

                                      God is Real unless explicitly declared as Integer.

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

                                        AcerExtensa in QtCreator clicked with right button in project > selected "Build".

                                        Create .lib and .dll :)

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

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

                                          AcerExtensa in QtCreator clicked with right button in project > selected "Build".

                                          Create .lib and .dll :)

                                          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