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. Qt does not see the icon
Forum Updated to NodeBB v4.3 + New Features

Qt does not see the icon

Scheduled Pinned Locked Moved Solved QML and Qt Quick
6 Posts 2 Posters 595 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.
  • C Offline
    C Offline
    ceydasimsekk
    wrote on last edited by
    #1

    Ekran görüntüsü 2024-08-14 153229.png

    When I show main.cpp to my file path like this, it sees my icon.

    Ekran görüntüsü 2024-08-14 153429.png

    When I show my file path this way, I don't see my icon.
    what's the problem?

    1 Reply Last reply
    0
    • JKSHJ JKSH

      Hi @ceydasimsekk, and welcome!

      Are you certain that your icon is at that resource path? Run the following lines to check:

      QDirIterator qrc(":", QDirIterator::Subdirectories);
      while(qrc.hasNext())
          qDebug() << qrc.next();
      
      C Offline
      C Offline
      ceydasimsekk
      wrote on last edited by
      #3

      @JKSH Hi! Thank you
      Ekran görüntüsü 2024-08-14 155656.png
      When I did as you said and typed my file path as seen in the picture above, I saw my icon.

      Ekran görüntüsü 2024-08-14 155905.png
      But there are people who do it this way and get results. What could be the reason for this?

      JKSHJ 1 Reply Last reply
      0
      • JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #2

        Hi @ceydasimsekk, and welcome!

        Are you certain that your icon is at that resource path? Run the following lines to check:

        QDirIterator qrc(":", QDirIterator::Subdirectories);
        while(qrc.hasNext())
            qDebug() << qrc.next();
        

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        C 1 Reply Last reply
        0
        • JKSHJ JKSH

          Hi @ceydasimsekk, and welcome!

          Are you certain that your icon is at that resource path? Run the following lines to check:

          QDirIterator qrc(":", QDirIterator::Subdirectories);
          while(qrc.hasNext())
              qDebug() << qrc.next();
          
          C Offline
          C Offline
          ceydasimsekk
          wrote on last edited by
          #3

          @JKSH Hi! Thank you
          Ekran görüntüsü 2024-08-14 155656.png
          When I did as you said and typed my file path as seen in the picture above, I saw my icon.

          Ekran görüntüsü 2024-08-14 155905.png
          But there are people who do it this way and get results. What could be the reason for this?

          JKSHJ 1 Reply Last reply
          0
          • C ceydasimsekk

            @JKSH Hi! Thank you
            Ekran görüntüsü 2024-08-14 155656.png
            When I did as you said and typed my file path as seen in the picture above, I saw my icon.

            Ekran görüntüsü 2024-08-14 155905.png
            But there are people who do it this way and get results. What could be the reason for this?

            JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #4

            @ceydasimsekk said in Qt does not see the icon:

            When I did as you said and typed my file path as seen in the picture above, I saw my icon.

            Great!

            But there are people who do it this way and get results. What could be the reason for this?

            They placed their resources at a path that has the / prefix, while you placed your resources at a path that has the /qt/qml/ prefix. That's the only reason.

            And your resources are under the /qt/qml/ prefix because they are part of a QML module. This was introduced in Qt 6.5: https://www.qt.io/blog/whats-new-for-qml-modules-in-6.5

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            C 1 Reply Last reply
            1
            • JKSHJ JKSH

              @ceydasimsekk said in Qt does not see the icon:

              When I did as you said and typed my file path as seen in the picture above, I saw my icon.

              Great!

              But there are people who do it this way and get results. What could be the reason for this?

              They placed their resources at a path that has the / prefix, while you placed your resources at a path that has the /qt/qml/ prefix. That's the only reason.

              And your resources are under the /qt/qml/ prefix because they are part of a QML module. This was introduced in Qt 6.5: https://www.qt.io/blog/whats-new-for-qml-modules-in-6.5

              C Offline
              C Offline
              ceydasimsekk
              wrote on last edited by
              #5

              @JKSH I understand, thank you very much. I'm new to Qt.

              JKSHJ 1 Reply Last reply
              0
              • C ceydasimsekk

                @JKSH I understand, thank you very much. I'm new to Qt.

                JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #6

                @ceydasimsekk said in Qt does not see the icon:

                @JKSH I understand, thank you very much. I'm new to Qt.

                You're most welcome. And great choice! 😄

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                1 Reply Last reply
                0
                • JKSHJ JKSH has marked this topic as solved on

                • Login

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