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. Ideas about how one implements a newsfeed on Qt( Android /Ios)
QtWS25 Last Chance

Ideas about how one implements a newsfeed on Qt( Android /Ios)

Scheduled Pinned Locked Moved General and Desktop
webview
8 Posts 3 Posters 2.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.
  • M Offline
    M Offline
    musimbate
    wrote on 3 May 2015, 07:30 last edited by
    #1

    Hello,
    I want to implement a newsfeed like this with Qt on android. The user can scroll around and click on a piece of news of interest....I am developing from a windows 7 machine targeting android and webView and webEngine both still have some trouble to work with android.

    1.Is there a way this can easily be implemented?I tried to use QTextbrowser but the html tags it supports are limited and it is hard to implement clickable links.

    2.Does Qt for ios suffer the same issues( webView and webEngine having trouble to work)

    Thank you for your time.

    Why join the navy if you can be a pirate?-Steve Jobs

    P 1 Reply Last reply 3 May 2015, 14:40
    0
    • M musimbate
      3 May 2015, 07:30

      Hello,
      I want to implement a newsfeed like this with Qt on android. The user can scroll around and click on a piece of news of interest....I am developing from a windows 7 machine targeting android and webView and webEngine both still have some trouble to work with android.

      1.Is there a way this can easily be implemented?I tried to use QTextbrowser but the html tags it supports are limited and it is hard to implement clickable links.

      2.Does Qt for ios suffer the same issues( webView and webEngine having trouble to work)

      Thank you for your time.

      P Offline
      P Offline
      p3c0
      Moderators
      wrote on 3 May 2015, 14:40 last edited by
      #2

      Hi @musimbate,
      First question which comes is which way you are going to implement it ? Qt Widget or QtQuick ? For the view like that you can use ListView with custom delegate (TextArea for HTML tags) and a QAbstractItemModel as the model.
      QtQuick's has advantage over QtWidgets in case of Android as it uses opengl indirectly. But ofcourse it will matter if you desire for smooth animations or scrolling or similar stuff.
      I have used QML's WebView on android and it works as expected (sure it has few features for now). Not tested on ios.

      157

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 3 May 2015, 21:44 last edited by
        #3

        Hi,

        To add to @p3c0, the QtWebKit and QtWebEngine modules are not available either on iOS nor Android because of Apple/Google's restriction on these platform. However you have the option of the QtWebView module (linked by p3c0) which provides a native web view

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • M Offline
          M Offline
          musimbate
          wrote on 4 May 2015, 01:19 last edited by
          #4

          Thanks for the replies p0c3 and SGaist,
          My app uses Qt Widgets (Sorry I didn't mention that) ,QML's WebView sounds great and I am trying it on android.Just curious if there is a plan for it to work on ios in the future.Looks like I have to implement something of my own on ios for the moment.I am thinking of using a QGraphicsView and add all the contents as QGraphicsItems.Is this a good way to approach this ?

          @SGaist : unfortunate thing QtWebView/QtWebEngine are not supported on these platforms.Is there a place I can learn about those specific restrictions?I know I should google this but a link or blogpost that has helped someone always saves time :-)

          Why join the navy if you can be a pirate?-Steve Jobs

          P 1 Reply Last reply 4 May 2015, 07:09
          0
          • M musimbate
            4 May 2015, 01:19

            Thanks for the replies p0c3 and SGaist,
            My app uses Qt Widgets (Sorry I didn't mention that) ,QML's WebView sounds great and I am trying it on android.Just curious if there is a plan for it to work on ios in the future.Looks like I have to implement something of my own on ios for the moment.I am thinking of using a QGraphicsView and add all the contents as QGraphicsItems.Is this a good way to approach this ?

            @SGaist : unfortunate thing QtWebView/QtWebEngine are not supported on these platforms.Is there a place I can learn about those specific restrictions?I know I should google this but a link or blogpost that has helped someone always saves time :-)

            P Offline
            P Offline
            p3c0
            Moderators
            wrote on 4 May 2015, 07:09 last edited by
            #5

            @musimbate

            unfortunate thing QtWebView/QtWebEngine are not supported on these platforms.Is there a place I can learn about those specific restrictions?

            https://wiki.qt.io/QtWebEngine

            157

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 4 May 2015, 23:35 last edited by
              #6

              QtWebView is supported on these platforms

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • M Offline
                M Offline
                musimbate
                wrote on 7 May 2015, 12:01 last edited by musimbate 5 Jul 2015, 13:01
                #7

                Thanks @SGaist ,
                I have been encountering the problem described here ,but after your comment I searched more and read a comment on the Qt blog that

                **September 9, 2014 at 12:22
                Using Qt WebEngine on iOS is not possible due to limitations in the app store policy, so instead of focusing on porting the full web engine to mobile platforms, we have implemented a light-weight QML overlay which builds on top of the native web view and works cross-platform.

                This is called Qt Web View and currently has implementations for iOS and Android (with a fallback to Qt Web Engine on the platforms that support this). A tech preview will be released around the time of the Qt 5.4.0 release.**

                This is what you meant probably but I couldn't get my hands on the information clearing how to use that.Could you shed some more light on this?

                Thank you again for your time.

                Edit: I just stumbled on this repository .It builds on android and displays a nice webview .Hope this helps somebody someday.(It came from google )

                Why join the navy if you can be a pirate?-Steve Jobs

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 8 May 2015, 19:52 last edited by
                  #8

                  The problem you're encountering is the same for QtWebKit/QtWebEngine. What I was referring to is the QtWebView module which is the "third player" for at least iOS and Android

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0

                  3/8

                  3 May 2015, 21:44

                  topic:navigator.unread, 5
                  • Login

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