Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Show images in .qml file that used by .cpp file

    QML and Qt Quick
    3
    4
    1829
    Loading More Posts
    • 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.
    • C
      chronoske last edited by

      I just wanna ensure about images file that used in .qml file (this .qml file is used by .cpp file).
      I had try use image file that have extension .jpg, but it's not appear in the application. So I changed it to .png and the image appeared.
      So, is it right if it's best when we use .png image file in .qml file ?

      1 Reply Last reply Reply Quote 0
      • G
        giesbert last edited by

        That depends on your installation.
        AFAIK png support is build in in Qt. for jpg - support you have to use the imageformats plugins.

        Nokia Certified Qt Specialist.
        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

        1 Reply Last reply Reply Quote 0
        • C
          chronoske last edited by

          How can I get imageformats plugins?

          1 Reply Last reply Reply Quote 0
          • Z
            ZapB last edited by

            Build it yourself. Check out the output of:

            @
            configure -help
            @

            to see what options the Qt configure tool supports.

            Nokia Certified Qt Specialist
            Interested in hearing about Qt related work

            1 Reply Last reply Reply Quote 0
            • First post
              Last post