Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to use ISO image for Custom Components
Forum Updated to NodeBB v4.3 + New Features

How to use ISO image for Custom Components

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
9 Posts 4 Posters 807 Views 1 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
    sush123
    wrote on last edited by
    #1
    This post is deleted!
    jsulmJ 1 Reply Last reply
    0
    • S sush123

      This post is deleted!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @sush123 said in How to use ISO image for Custom Components:

      but it did not show up in GUI

      What is format of this image?
      Also, you're using a relative path which will only work if working directory is correct. You should use resource file instead (https://doc.qt.io/qt-5/resources.html).

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sush123
        wrote on last edited by
        #3
        This post is deleted!
        jsulmJ 1 Reply Last reply
        0
        • S sush123

          This post is deleted!

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @sush123 said in How to use ISO image for Custom Components:

          Image formar is dat

          I never heard about such an image format. Do you have any information about it? What exactly is it?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • 6thC6 Offline
            6thC6 Offline
            6thC
            wrote on last edited by
            #5

            I've never heard of it either but I did find this: https://doc-snapshots.qt.io/qtdesignstudio/qml-qtquick-studio-components-iso.html

            1 Reply Last reply
            0
            • S Offline
              S Offline
              sush123
              wrote on last edited by
              #6

              I have referred this doc https://doc.qt.io/qtcreator/qtquick-iso-icon-browser.html

              jsulmJ 1 Reply Last reply
              0
              • S sush123

                I have referred this doc https://doc.qt.io/qtcreator/qtquick-iso-icon-browser.html

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by jsulm
                #7

                @sush123 This link does not answer my question.
                What file format is iso_grs_7000_4_3127.dat?
                Is it JPEG, PNG, TIFF, something else?

                Also did you notice this in your link: "Qt Creator generates a Qt resource file called iso-icons.qrc that adds the icons as a part of your project for delivery with your application."
                You do not use the qrc files, instead you're hacking around with relative path...

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  sush123
                  wrote on last edited by
                  #8
                  This post is deleted!
                  mrjjM 1 Reply Last reply
                  0
                  • S sush123

                    This post is deleted!

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

                    @sush123
                    Hi
                    ../../../../../Op-Gui/iso-icons/iso_grs_7000_4_3127.dat
                    is not a path into the ressource file
                    so did you take that file FROM the generated qrc file ?

                    1 Reply Last reply
                    0

                    • Login

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