Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Compile with icon.
Forum Updated to NodeBB v4.3 + New Features

Compile with icon.

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 415 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.
  • P Offline
    P Offline
    priscilla v
    wrote on 3 Feb 2019, 21:06 last edited by
    #1

    I am compiling an application in Python, before compiling everything perfect but once compiled the icons of the taskbar and the window are lost, how can I compile and that the icon does not disappear from those places, the icon does remain in the executable but I also want it to be in the taskbar and the window.

    I'm compiling with this line.
    pyinstaller go.py -i corazon.ico --noconsole --onefile

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Kent-Dorfman
      wrote on 6 Mar 2019, 08:12 last edited by
      #2

      my approach to this very issue will be to create a python class that holds the binary data (as arrays) that makes up the icons, then feed that data to QPixmap, and then to QIcon instances.

      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