Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Setting icon for QtConsoleApplication
Qt 6.11 is out! See what's new in the release blog

Setting icon for QtConsoleApplication

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 697 Views 2 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    How does one set an icon for a QtConsoleApplication? I tried setWindowIcon but it doesn't seem to work as it's not a QMainWindow but a QApplication.

    Thank you!

    mrjjM 1 Reply Last reply
    0
    • ? A Former User

      How does one set an icon for a QtConsoleApplication? I tried setWindowIcon but it doesn't seem to work as it's not a QMainWindow but a QApplication.

      Thank you!

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

      @Mehodin
      Hi
      You can try this
      http://doc.qt.io/qt-5/appicon.html
      I have never tried with QtConsoleApplication so I cant promise it works.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        @mrjj there's no Rc file tho

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          You have to create that file yourself.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            @SGaist and how would I tell the compiler to look at that file?

            mrjjM 1 Reply Last reply
            0
            • ? A Former User

              @SGaist and how would I tell the compiler to look at that file?

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

              @Mehodin
              Did you read the link ?
              Says
              "Then, add this line to your myapp.pro file:
              RC_FILE = myapp.rc"

              1 Reply Last reply
              3

              • Login

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