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. QIcon: Cannot load icon dialog-question from theme

QIcon: Cannot load icon dialog-question from theme

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.6k Views
  • 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.
  • A Offline
    A Offline
    alan73
    wrote on last edited by
    #1

    Hello!

    I get this warning to the command line from my Qt4 app:
    @QIcon: Cannot load icon dialog-question from theme@

    It's caused by this snippet:
    @QMessageBox *messbox = new QMessageBox(QMessageBox::Question, "title", "text",
    QMessageBox::Yes | QMessageBox::No);@

    In spite of it, question picture is displayed. How can I get rid of this warning?

    Environment:
    Red Hat 6.2
    Qt 4.8.3

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

      Hi,

      Might sound silly but: add that icon to your current desktop theme

      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
      0
      • A Offline
        A Offline
        alan73
        wrote on last edited by
        #3

        Thanks for reply, could you give me a little more info about this idea?

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

          You linux environment is using a them containing a set of icons (think of KDE's Oxygen) to use for e.g. print button, message dialog etc… Yours seem to missing that icon so it loads a default one. The message in itself is harmless.

          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
          0

          • Login

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