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. NorwegianWoodStyle scrollbar bg texture.
Forum Updated to NodeBB v4.3 + New Features

NorwegianWoodStyle scrollbar bg texture.

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 619 Views 1 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.
  • S Offline
    S Offline
    samdol
    wrote on last edited by samdol
    #1

    Hi,

    I ran Styles Example in both Qt 4.8.2 and Qt 5.6.2.
    Here is the result of NorwegianWoodStyle.
    The left one is the result of Qt 4.8.2 and the right one is the result of Qt
    5.6.2.
    As you can see around red rectangle area, in Qt 5.6.2 the background of
    scrollbar is not wood texture. Is it a bug of Qt 5? Is there any workaround to
    make it look like the left one(Qt 4.8.2)?

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

      Hi
      Most likely QStyle name for it has changed or been split into more elements.
      You have to place some break points in
      drawPrimitive and drawControl
      and find out what is missing.
      Its still possible to style is so only task is to find out
      what is missing.

      S 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        Most likely QStyle name for it has changed or been split into more elements.
        You have to place some break points in
        drawPrimitive and drawControl
        and find out what is missing.
        Its still possible to style is so only task is to find out
        what is missing.

        S Offline
        S Offline
        samdol
        wrote on last edited by
        #3

        @mrjj
        The only difference was Norwaygianwood style inherits QProxyStyle in Qt 5.6.2.
        In Qt 4.8.2, it inherits QMotiffStyle which does not exists in Qt5.6.2.
        On the other hand QProxyStyle exists in Qt 4.8.2. when I put the example from Qt 5.6.2 to Qt 4.8.2, it shows the left figure. So I guess Qt 5.6.2 interprets the same code differently. So it seems that approach may not work.

        mrjjM 1 Reply Last reply
        0
        • S samdol

          @mrjj
          The only difference was Norwaygianwood style inherits QProxyStyle in Qt 5.6.2.
          In Qt 4.8.2, it inherits QMotiffStyle which does not exists in Qt5.6.2.
          On the other hand QProxyStyle exists in Qt 4.8.2. when I put the example from Qt 5.6.2 to Qt 4.8.2, it shows the left figure. So I guess Qt 5.6.2 interprets the same code differently. So it seems that approach may not work.

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

          @samdol
          Well since its still possible to style that area of the
          scrollbar it should be fixable. :)

          alt text

          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