Using internal QGIS icons / banner in own pluginOfficial source for QGIS icons or banners?Where to get QGIS...

Is VPN a layer 3 concept?

If I cast the Enlarge/Reduce spell on an arrow, what weapon could it count as?

The English Debate

What kind of footwear is suitable for walking in micro gravity environment?

Have the tides ever turned twice on any open problem?

What are the differences between tunneling and regulare encapsulation?

How can an organ that provides biological immortality be unable to regenerate?

Justification failure in beamer enumerate list

pipe commands inside find -exec?

Unfrosted light bulb

Symbolism of 18 Journeyers

Friend wants my recommendation but I don't want to

Why are there no stars visible in cislunar space?

Why is indicated airspeed rather than ground speed used during the takeoff roll?

Interior of Set Notation

Is this Pascal's Matrix?

Determine voltage drop over 10G resistors with cheap multimeter

Hackerrank All Women's Codesprint 2019: Name the Product

Weird lines in Microsoft Word

What is it called when someone votes for an option that's not their first choice?

Air travel with refrigerated insulin

Why didn’t Eve recognize the little cockroach as a living organism?

Hot air balloons as primitive bombers

Someone scrambled my calling sign- who am I?



Using internal QGIS icons / banner in own plugin


Official source for QGIS icons or banners?Where to get QGIS toolbar icons?Missing qgis icon resources for symbology dialogProblem compiling UI file generated by QGIS Plugin BuidlerDisplay plugin iconWith QGIS Plugin Builder, receiving “ImportError: cannot import name”QGIS Plugin Import Error on QGIS startInsert image in QGIS Plugin using qt creatorQFileDialog.getSaveFileName() error in Plugin code for QGISRelative path to the plugin folder for SVG file in QGIS3 .SLD fileFind QGIS 3 plugin folder location with PyQGISAccess icons from within QGIS plugin with relative paths?Install QGIS plugin manually - Package not available in Plugin Manager













0















I have a problem using the internal symbols/icons in my plugin. For example I want to use the "save" Symbol in a QToolButton or the "cancel" symbol in a QPushButton.



I designed the GUI in QT 5 Designer. I also added the symbols to the button. After I compiled the ui file with pyuic5 I changed the absolute path to the symbols to the relative path in my plugin folder after putting the downloaded svg files (like its discribed here and there) in the plugin directory.



Plugin folder overview



Running the file QgsAlkOsmCompare_dialog.py in the terminal, produces this:
All icons show up in their correct position (I cutted the screenshot because of its size).



gui via terminal



Opening my plugin in QGIS is functional, but the icons disappear. Even if I run the same py file in the ./QGIS/QGIS3/profiles/default/python/plugins folder the plugin doesn't show the icons. I tried it with png file instead but nothing changed.



gui in qgis



Is it impossible to show buttons with icons in QGIS? I guess no, because I have seen icons in some of the GDAL processing functions too.



Can I import these internal QGIS icons in my GUI file or is it compiled to the qgis.exe/qgis or some other kind of resource file?









share







New contributor




snoky5313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I have a problem using the internal symbols/icons in my plugin. For example I want to use the "save" Symbol in a QToolButton or the "cancel" symbol in a QPushButton.



    I designed the GUI in QT 5 Designer. I also added the symbols to the button. After I compiled the ui file with pyuic5 I changed the absolute path to the symbols to the relative path in my plugin folder after putting the downloaded svg files (like its discribed here and there) in the plugin directory.



    Plugin folder overview



    Running the file QgsAlkOsmCompare_dialog.py in the terminal, produces this:
    All icons show up in their correct position (I cutted the screenshot because of its size).



    gui via terminal



    Opening my plugin in QGIS is functional, but the icons disappear. Even if I run the same py file in the ./QGIS/QGIS3/profiles/default/python/plugins folder the plugin doesn't show the icons. I tried it with png file instead but nothing changed.



    gui in qgis



    Is it impossible to show buttons with icons in QGIS? I guess no, because I have seen icons in some of the GDAL processing functions too.



    Can I import these internal QGIS icons in my GUI file or is it compiled to the qgis.exe/qgis or some other kind of resource file?









    share







    New contributor




    snoky5313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I have a problem using the internal symbols/icons in my plugin. For example I want to use the "save" Symbol in a QToolButton or the "cancel" symbol in a QPushButton.



      I designed the GUI in QT 5 Designer. I also added the symbols to the button. After I compiled the ui file with pyuic5 I changed the absolute path to the symbols to the relative path in my plugin folder after putting the downloaded svg files (like its discribed here and there) in the plugin directory.



      Plugin folder overview



      Running the file QgsAlkOsmCompare_dialog.py in the terminal, produces this:
      All icons show up in their correct position (I cutted the screenshot because of its size).



      gui via terminal



      Opening my plugin in QGIS is functional, but the icons disappear. Even if I run the same py file in the ./QGIS/QGIS3/profiles/default/python/plugins folder the plugin doesn't show the icons. I tried it with png file instead but nothing changed.



      gui in qgis



      Is it impossible to show buttons with icons in QGIS? I guess no, because I have seen icons in some of the GDAL processing functions too.



      Can I import these internal QGIS icons in my GUI file or is it compiled to the qgis.exe/qgis or some other kind of resource file?









      share







      New contributor




      snoky5313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I have a problem using the internal symbols/icons in my plugin. For example I want to use the "save" Symbol in a QToolButton or the "cancel" symbol in a QPushButton.



      I designed the GUI in QT 5 Designer. I also added the symbols to the button. After I compiled the ui file with pyuic5 I changed the absolute path to the symbols to the relative path in my plugin folder after putting the downloaded svg files (like its discribed here and there) in the plugin directory.



      Plugin folder overview



      Running the file QgsAlkOsmCompare_dialog.py in the terminal, produces this:
      All icons show up in their correct position (I cutted the screenshot because of its size).



      gui via terminal



      Opening my plugin in QGIS is functional, but the icons disappear. Even if I run the same py file in the ./QGIS/QGIS3/profiles/default/python/plugins folder the plugin doesn't show the icons. I tried it with png file instead but nothing changed.



      gui in qgis



      Is it impossible to show buttons with icons in QGIS? I guess no, because I have seen icons in some of the GDAL processing functions too.



      Can I import these internal QGIS icons in my GUI file or is it compiled to the qgis.exe/qgis or some other kind of resource file?







      qgis qgis-plugins icon





      share







      New contributor




      snoky5313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      snoky5313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      snoky5313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 5 mins ago









      snoky5313snoky5313

      1




      1




      New contributor




      snoky5313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      snoky5313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      snoky5313 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "79"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          snoky5313 is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f315904%2fusing-internal-qgis-icons-banner-in-own-plugin%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          snoky5313 is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          snoky5313 is a new contributor. Be nice, and check out our Code of Conduct.













          snoky5313 is a new contributor. Be nice, and check out our Code of Conduct.












          snoky5313 is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f315904%2fusing-internal-qgis-icons-banner-in-own-plugin%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Щит и меч (фильм) Содержание Названия серий | Сюжет |...

          Венесуэла на летних Олимпийских играх 2000 Содержание Состав...

          Meter-Bus Содержание Параметры шины | Стандартизация |...