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. How are native apps able to show user created content with text and images at random places? (placements inside a listview, etc)

How are native apps able to show user created content with text and images at random places? (placements inside a listview, etc)

Scheduled Pinned Locked Moved Solved General and Desktop
gui development
6 Posts 3 Posters 561 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.
  • E Offline
    E Offline
    escape
    wrote on 25 Dec 2021, 20:28 last edited by escape
    #1

    Hello,

    In for example a web page some user created content can be a text with markdown, images at different places, gifs, smilies, embed and render a youtube player via links or link previews etc, but learning GUI development I do not understand how this is done in a native app? Is this only possible with web view?

    Thanks for your time and help

    W 1 Reply Last reply 27 Dec 2021, 20:03
    0
    • E escape
      25 Dec 2021, 20:28

      Hello,

      In for example a web page some user created content can be a text with markdown, images at different places, gifs, smilies, embed and render a youtube player via links or link previews etc, but learning GUI development I do not understand how this is done in a native app? Is this only possible with web view?

      Thanks for your time and help

      W Offline
      W Offline
      wrosecrans
      wrote on 27 Dec 2021, 20:03 last edited by
      #6

      @escape said in How are native apps able to show user created content with text and images at random places? (placements inside a listview, etc):

      Is this only possible with web view?

      A web browser is a native application, so your premise is a bit confusing.

      If you want to show web content specifically, then you'll need to use something that can show web content like a WebView. If you want to show something arbitrary based on user input, then that just describes most applications. A picture viewer will show whatever image a user wants to open. A word processor will show whatever content a user types. A paint program will show whatever content a user draws, etc. A web browser isn't fundamentally any different from something like a word processor. The program displays stuff on screen based on data it has loaded.

      @escape said in How are native apps able to show user created content with text and images at random places? (placements inside a listview, etc):

      Is it normal to use a local html file in webengine and connect to python/c++ via webchannel to make a hybrid app? To fetch data from an api/server and displaying it in the app?

      People who are really used to web dev sometimes like to use HTML for making UI. Personally, I just find it confusing and overly complicated to add HTML and webs tuff to an application that doesn't need it because my background isn't mainly web stuff. But it's certainly not terribly unusual.

      1 Reply Last reply
      1
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 25 Dec 2021, 20:44 last edited by
        #2

        Hi,

        Web development still follows a given architecture usually based on html + JavaScript + CSS or something that converts from e.g. Markdown back to html.

        Native applications use building blocks like buttons, list views, combo boxes, etc. down to the fully self painted widget.

        What exactly are you looking for ?

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

        E 1 Reply Last reply 25 Dec 2021, 21:43
        0
        • S SGaist
          25 Dec 2021, 20:44

          Hi,

          Web development still follows a given architecture usually based on html + JavaScript + CSS or something that converts from e.g. Markdown back to html.

          Native applications use building blocks like buttons, list views, combo boxes, etc. down to the fully self painted widget.

          What exactly are you looking for ?

          E Offline
          E Offline
          escape
          wrote on 25 Dec 2021, 21:43 last edited by escape
          #3

          @SGaist For example I know how to create a listview with a box to put a image in and perhaps a username beside it and then some text published by that user under it, but all this is static? What if that text has varying number of images and all that? In a car instrument panel the only thing that changes is the data? Just as examples to explain what I mean. I know very little about Qt or desktop development in general.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 26 Dec 2021, 20:15 last edited by
            #4

            Then you should check the model view concept.

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

            E 1 Reply Last reply 26 Dec 2021, 21:35
            1
            • S SGaist
              26 Dec 2021, 20:15

              Then you should check the model view concept.

              E Offline
              E Offline
              escape
              wrote on 26 Dec 2021, 21:35 last edited by escape
              #5

              @SGaist Thanks for pointing me in the right direction. Is it normal to use a local html file in webengine and connect to python/c++ via webchannel to make a hybrid app? To fetch data from an api/server and displaying it in the app?

              1 Reply Last reply
              0
              • E escape
                25 Dec 2021, 20:28

                Hello,

                In for example a web page some user created content can be a text with markdown, images at different places, gifs, smilies, embed and render a youtube player via links or link previews etc, but learning GUI development I do not understand how this is done in a native app? Is this only possible with web view?

                Thanks for your time and help

                W Offline
                W Offline
                wrosecrans
                wrote on 27 Dec 2021, 20:03 last edited by
                #6

                @escape said in How are native apps able to show user created content with text and images at random places? (placements inside a listview, etc):

                Is this only possible with web view?

                A web browser is a native application, so your premise is a bit confusing.

                If you want to show web content specifically, then you'll need to use something that can show web content like a WebView. If you want to show something arbitrary based on user input, then that just describes most applications. A picture viewer will show whatever image a user wants to open. A word processor will show whatever content a user types. A paint program will show whatever content a user draws, etc. A web browser isn't fundamentally any different from something like a word processor. The program displays stuff on screen based on data it has loaded.

                @escape said in How are native apps able to show user created content with text and images at random places? (placements inside a listview, etc):

                Is it normal to use a local html file in webengine and connect to python/c++ via webchannel to make a hybrid app? To fetch data from an api/server and displaying it in the app?

                People who are really used to web dev sometimes like to use HTML for making UI. Personally, I just find it confusing and overly complicated to add HTML and webs tuff to an application that doesn't need it because my background isn't mainly web stuff. But it's certainly not terribly unusual.

                1 Reply Last reply
                1

                5/6

                26 Dec 2021, 21:35

                • Login

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