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. QTreeView: Branch-Icons 'altered' by windeployqt?
Forum Updated to NodeBB v4.3 + New Features

QTreeView: Branch-Icons 'altered' by windeployqt?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 177 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.
  • M Offline
    M Offline
    Max Gabler
    wrote on last edited by Max Gabler
    #1

    Hello,

    we are using Qt 5.12.2 for all of our applications.
    After moving away from using the windeployqt tool for app deployment (too unflexible to us) we have encountered some strange behviour of the QTreeViews in our apps:
    Instead of displaying the nice and modern looking chevron control icons to expand / collapse branches the old NT style "+" und "-" signs along with actual branch lines are displayed:

    WITH windeployqt:
    QTreeView_deployed_WITH_windeployqt.png

    WITHOUT windeployqt:
    QTreeView_deployed_without_windeployqt.png

    This behaviour can easily be reproduced either by 'just copying' the needed Qt libraries into our app install directory (as we do now) or by using the windeployqt tool (which yields the better looking result but is not an viable option any more).

    In order to avoid some conflicts with Qt-Versions of other vendors, we had to compile our own Qt libraries from source adding our own namespace and 'libinfix'.
    I recegnized, that during the deployement windeployqt removes a path which was previusly passed in the build process as 'PREFIX' from the Qt5Core.dll, which would not be the case when its just copied. I just don't understand if and how this could be the reason for the QTreeView to be displayed diffently.

    Does anyone have an idea, what we did wrong here?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Max Gabler
      wrote on last edited by Max Gabler
      #2

      I've come somewhat further in the process: It seems like Qt defaults to some internal view style if it can't find any plugins under the hard coded 'prefix_path' in Qt5Core.dll.
      To test this, I temporarely copied the plugins directory from the Qt bin path to the same path on the target machine and voilá: it displays the control icons nicely and modern as expected.

      The new question now is: how to get rid of the prefix path in Qt5Core.dll without using windeployqt?

      1 Reply Last reply
      0
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #3

        When you don't want to use windeployqt for whatever reason you should read the Deploying Plugins page and copy the plugins + directories under your application folder as explained there.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        1

        • Login

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