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. Problems in practicing and running an example
Forum Updated to NodeBB v4.3 + New Features

Problems in practicing and running an example

Scheduled Pinned Locked Moved Solved General and Desktop
31 Posts 3 Posters 9.7k 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.
  • tomyT tomy

    I used, no changes in result! :(

    mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #22

    @tomy
    Then I dont know.
    Where did you get sample from ?

    1 Reply Last reply
    0
    • tomyT Offline
      tomyT Offline
      tomy
      wrote on last edited by
      #23

      From here, Digesting an User Interface.

      mrjjM 1 Reply Last reply
      0
      • tomyT tomy

        From here, Digesting an User Interface.

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #24

        @tomy
        I made a default QML projected
        added image folder in project folder and used
        Image {
        id: root
        source: "qrc:/images/test.png"
        }

        and it loaded image.

        So what ever goes wrong in your project, its minor.

        tomyT 1 Reply Last reply
        0
        • mrjjM mrjj

          @tomy
          I made a default QML projected
          added image folder in project folder and used
          Image {
          id: root
          source: "qrc:/images/test.png"
          }

          and it loaded image.

          So what ever goes wrong in your project, its minor.

          tomyT Offline
          tomyT Offline
          tomy
          wrote on last edited by tomy
          #25

          I made a default QML projected

          Is it different from the "Qt Quick Console 2 Application" project? You yourself told me to create such a project above.

          added image folder in project folder and used
          Image {
          id: root
          source: "qrc:/images/test.png"
          }

          and it loaded image.

          So what ever goes wrong in your project, its minor.

          Do you do the works just like me? And do your files contain the same thing as mine? And yours works well?!
          I tried the example using three projects, Main, Main2 and Main3. None gave me the expected result.

          mrjjM 1 Reply Last reply
          0
          • tomyT tomy

            I made a default QML projected

            Is it different from the "Qt Quick Console 2 Application" project? You yourself told me to create such a project above.

            added image folder in project folder and used
            Image {
            id: root
            source: "qrc:/images/test.png"
            }

            and it loaded image.

            So what ever goes wrong in your project, its minor.

            Do you do the works just like me? And do your files contain the same thing as mine? And yours works well?!
            I tried the example using three projects, Main, Main2 and Main3. None gave me the expected result.

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by mrjj
            #26

            @tomy said in Problems in practicing and running an example:

            Is it different from the "Qt Quick Console 2 Application" project?

            No it is such project.
            then added image{...} to ApplicationWindow

            ApplicationWindow {
                visible: true
                width: 640
                height: 480
                title: qsTr("Hello World")
            
                Image {
                    id: root
                    source: "qrc:/images/test.png"
                }
            .....
            

            test project
            https://www.dropbox.com/s/kfkjb7c8dldvtr2/myqml.zip?dl=0

            tomyT 1 Reply Last reply
            1
            • mrjjM mrjj

              @tomy said in Problems in practicing and running an example:

              Is it different from the "Qt Quick Console 2 Application" project?

              No it is such project.
              then added image{...} to ApplicationWindow

              ApplicationWindow {
                  visible: true
                  width: 640
                  height: 480
                  title: qsTr("Hello World")
              
                  Image {
                      id: root
                      source: "qrc:/images/test.png"
                  }
              .....
              

              test project
              https://www.dropbox.com/s/kfkjb7c8dldvtr2/myqml.zip?dl=0

              tomyT Offline
              tomyT Offline
              tomy
              wrote on last edited by
              #27

              ApplicationWindow {
              visible: true
              width: 640
              height: 480

              This part solved the issue.

              test project
              https://www.dropbox.com/s/kfkjb7c8dldvtr2/myqml.zip?dl=0

              Thanks.

              mrjjM 1 Reply Last reply
              0
              • tomyT tomy

                ApplicationWindow {
                visible: true
                width: 640
                height: 480

                This part solved the issue.

                test project
                https://www.dropbox.com/s/kfkjb7c8dldvtr2/myqml.zip?dl=0

                Thanks.

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #28

                @tomy
                Ah so the sample had no window or something like that ?

                tomyT 1 Reply Last reply
                0
                • mrjjM mrjj

                  @tomy
                  Ah so the sample had no window or something like that ?

                  tomyT Offline
                  tomyT Offline
                  tomy
                  wrote on last edited by
                  #29

                  @mrjj
                  No unfortunately! Didn't you take a look at the website I offered?
                  I fear how I go on reading that book if its next examples are that vague! :-(

                  mrjjM 1 Reply Last reply
                  0
                  • tomyT tomy

                    @mrjj
                    No unfortunately! Didn't you take a look at the website I offered?
                    I fear how I go on reading that book if its next examples are that vague! :-(

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by mrjj
                    #30

                    @tomy
                    Yep. seems like a good book.
                    If you read it all, i think it will give lots of insights.
                    When you then know the classes and overall architecture, it should be easier to google
                    for other examples if needed.

                    tomyT 1 Reply Last reply
                    2
                    • mrjjM mrjj

                      @tomy
                      Yep. seems like a good book.
                      If you read it all, i think it will give lots of insights.
                      When you then know the classes and overall architecture, it should be easier to google
                      for other examples if needed.

                      tomyT Offline
                      tomyT Offline
                      tomy
                      wrote on last edited by
                      #31

                      @mrjj
                      Honestly I'm reading the official Qt book (in chapter 5 now) and that book too. So I expect to encounter many problems (since I'm teaching myself the both books without any tutor). but since there are useful websites and very helpful forums (like here), I think I can cope with them, although with difficulties.

                      1 Reply Last reply
                      1

                      • Login

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