Results 1 to 5 of 5

Thread: Setting the Application Icon on Windows

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Re: Setting the Application Icon on Windows

    Test if you have a space in some folder in your path to the project.
    Example: D:\Lab\QtProjects\MyNotepad 1.0

    This make that cannot recognize "windres"

    Do the follow:
    -Delete the pro.user file in your project root directory
    -rename without spaces (Ex: D:\Lab\QtProjects\MyNotepad-1.0)
    -in Qt Creator -> Open Project -> mynotepad.pro (following the example)
    Compile and Voilé.... All ok!!

    Try...

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,330
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Setting the Application Icon on Windows

    This "answer" has absolutely nothing to do with the original question that was asked in this seven year old post. Why did you dig it up and answer a question that was never asked?

    Besides that, the correct "answer" is not to rename files and directories, it is to enclose the path and/or file name in quotes when there are embedded spaces:

    Qt Code:
    1. "D:\Lab\QtProjects\MyNotepad 1.0"
    To copy to clipboard, switch view to plain text mode 
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. setting main application icon on windows
    By JeanC in forum Qt Programming
    Replies: 7
    Last Post: 12th June 2017, 05:35
  2. Setting OS Specified Icon on the File?
    By vishal.chauhan in forum Qt Programming
    Replies: 4
    Last Post: 31st May 2008, 12:37
  3. Setting an icon to an Item in a QlistWidget
    By LordQt in forum Qt Programming
    Replies: 18
    Last Post: 23rd August 2007, 22:24
  4. Setting window icon on derived QWidget
    By steg90 in forum Qt Programming
    Replies: 5
    Last Post: 16th July 2007, 11:21
  5. Setting default icon for all windows / dialogs
    By steg90 in forum Qt Programming
    Replies: 1
    Last Post: 5th July 2007, 10:04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.