Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Possible Qt 6.03 Bug

Possible Qt 6.03 Bug

Scheduled Pinned Locked Moved Unsolved Qt 6
2 Posts 2 Posters 270 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.
  • P Offline
    P Offline
    pixbyte
    wrote on 22 Apr 2021, 16:27 last edited by
    #1

    I elevate my project to QT 6.03 and now I recognized that my TreeWidget do not show Icons by QFileIconProvider.
    I rechecked the same code with 5.15.2 and the same code works.

      QFileIconProvider iconprovider;
      QIcon icon = iconprovider.icon(fileinfo);
      setIcon(0, icon);
    

    On QT this icon is always not shown. A default icon loaded from resource works well, too. So I assume that QFileIconProvider has a bug.
    Maybe someone can confirm?

    I use:
    Windows 10
    VisualStudio 2019 64bit compiler
    QT 6.03 Debug

    Rechecked with:
    Windows 10
    VisualStudio 2019 64bit compiler
    QT 5.15.2

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VRonin
      wrote on 22 Apr 2021, 18:58 last edited by VRonin
      #2

      Bug is confirmed.
      QTBUG-91104 is the general issue being worked, QTBUG-92030 is your specific case.

      If you need a workaround (works in the current dev branch) you can set up a custom theme to hold the icons you want to use.

      See this example on how to setup a custom theme.
      The icons you need to provide are:

      • "computer"
      • "user-desktop"
      • "user-trash"
      • "network-workgroup"
      • "drive-harddisk"
      • "folder"
      • "text-x-generic"

      You could use Breeze or Oxygen icons from KDE if you need them

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      2

      1/2

      22 Apr 2021, 16:27

      • Login

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