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. Limit browsing inside domain
Forum Updated to NodeBB v4.3 + New Features

Limit browsing inside domain

Scheduled Pinned Locked Moved Unsolved Qt WebKit
7 Posts 3 Posters 1.2k Views 2 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.
  • S Offline
    S Offline
    SteMMo
    wrote on 9 Aug 2020, 09:36 last edited by
    #1

    Hello all,
    I'm developing a kiosk machine and I need to navigate on a local page and eventually a defined domain. I'd like to write a simple Qt app with WebKit module.

    Is it possible with WebKit and related to limit browsing and achieve what I need?
    Thanks!

    J P 2 Replies Last reply 9 Aug 2020, 09:42
    0
    • S SteMMo
      9 Aug 2020, 09:36

      Hello all,
      I'm developing a kiosk machine and I need to navigate on a local page and eventually a defined domain. I'd like to write a simple Qt app with WebKit module.

      Is it possible with WebKit and related to limit browsing and achieve what I need?
      Thanks!

      J Online
      J Online
      JonB
      wrote on 9 Aug 2020, 09:42 last edited by
      #2

      @SteMMo
      If you want to stick with QtWebKit you may have to wait for @Konstantin-Tokarev to read this. Are you aware of QtWebEngine, https://doc.qt.io/qt-5/qtwebengine-index.html, which is what Qt > 5.5 now ships with out-of-the-box?

      1 Reply Last reply
      1
      • S Offline
        S Offline
        SteMMo
        wrote on 9 Aug 2020, 22:21 last edited by
        #3

        @JonB
        I need to check on the board to understand which Qt version is supported ..

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SteMMo
          wrote on 10 Aug 2020, 11:20 last edited by
          #4

          On my board I have the Qt 5.7.1
          I've developed a very simple application based on QtWebEngine: this is developed on Windows (5.9.9) and moved + compiled on 5.7.1 - It is ruuning !
          Now I'd like to control the navigation ..

          J 1 Reply Last reply 10 Aug 2020, 11:44
          0
          • S SteMMo
            10 Aug 2020, 11:20

            On my board I have the Qt 5.7.1
            I've developed a very simple application based on QtWebEngine: this is developed on Windows (5.9.9) and moved + compiled on 5.7.1 - It is ruuning !
            Now I'd like to control the navigation ..

            J Online
            J Online
            JonB
            wrote on 10 Aug 2020, 11:44 last edited by
            #5

            @SteMMo
            I'm not an expert, but what about QWebEnginePage::acceptNavigationRequest ? You can examine the URL and accept/reject it, according to your criteria.

            1 Reply Last reply
            0
            • S SteMMo
              9 Aug 2020, 09:36

              Hello all,
              I'm developing a kiosk machine and I need to navigate on a local page and eventually a defined domain. I'd like to write a simple Qt app with WebKit module.

              Is it possible with WebKit and related to limit browsing and achieve what I need?
              Thanks!

              P Offline
              P Offline
              Pablo J. Rogina
              wrote on 10 Aug 2020, 12:12 last edited by
              #6

              @SteMMo said in Limit browsing inside domain:

              eventually a defined domain.

              If the domain is predefined beforehand, why would you let the users type it or anything else?

              I'd just provide a way for them to select such predefined domain via a link/button/etc. pointing to such location

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              S 1 Reply Last reply 10 Aug 2020, 13:21
              0
              • P Pablo J. Rogina
                10 Aug 2020, 12:12

                @SteMMo said in Limit browsing inside domain:

                eventually a defined domain.

                If the domain is predefined beforehand, why would you let the users type it or anything else?

                I'd just provide a way for them to select such predefined domain via a link/button/etc. pointing to such location

                S Offline
                S Offline
                SteMMo
                wrote on 10 Aug 2020, 13:21 last edited by
                #7

                @Pablo-J-Rogina I need to explain:
                the kiosk needs to show two kind of pages:

                1. a registration form
                2. a public web site that contains some links that bring the normal user out of the portal, but not the user in front of the kiosk.

                @JonB now the browser is a QML object so I have the WebEngineView object; I don't know how to access to QWebEnginePage object ..

                1 Reply Last reply
                0

                4/7

                10 Aug 2020, 11:20

                • Login

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