Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QtWebEngine colorChooser
Forum Updated to NodeBB v4.3 + New Features

QtWebEngine colorChooser

Scheduled Pinned Locked Moved Unsolved QtWebEngine
3 Posts 2 Posters 751 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.
  • A Offline
    A Offline
    adriano.patrizio
    wrote on last edited by
    #1

    Why is not possible detect colorChooser such as fileChooser and javascript dialogs? I want to create a web browser with custom functions in user dialogs. In Qml it's possible but i prefer use C++.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi, and welcome to the forum. Please post a few lines of code so we can understand what you're trying to achieve.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        adriano.patrizio
        wrote on last edited by
        #3

        Thank you! If i want implement a custom fileChooser, the solution is simple:

        class Page : public QWebEnginePage
        {
            Q_OBJECT
        
             public:
                WebView(QWidget *parent = nullptr);
        
             protected:
                chooseFiles(FileSelectionMode mode, const QStringList &oldFiles, const QStringList &mimeTypes) override;
        }
        

        And after set QWebEnginePage with method setPage() to WebEngineView.
        It's possible implement a color chooser dialog? In QML this is possilble:

        WebEngineView {
             onColorDialogRequested: function(request){
                // rest of the code
             }
        }
        
        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