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. [Solved] Why does a application ignore its plugin?
QtWS25 Last Chance

[Solved] Why does a application ignore its plugin?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.2k 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.
  • W Offline
    W Offline
    whitesong
    wrote on last edited by
    #1

    There is an example of plugin that exist in qt examples it is called 'styleplugin'
    this simple plugin must change color of button to red but when i run it. it wont change the color of button.
    (If you want test whole project go to example tab of qt creator and type 'plugin' then choose style plugin example)

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dbzhang800
      wrote on last edited by
      #2

      Can you told which platform and Qt version are you using?

      1 Reply Last reply
      0
      • W Offline
        W Offline
        whitesong
        wrote on last edited by
        #3

        I have Qt 5.1 and my platform is xp.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dbzhang800
          wrote on last edited by
          #4

          Yes, it's a bug. It doesn't work for Windows and Mac.

          Fix the constructor.

          @
          SimpleStyle():QProxyStyle(QStringLiteral("windows")) {}
          @

          1 Reply Last reply
          0
          • W Offline
            W Offline
            whitesong
            wrote on last edited by
            #5

            Thanks a lot. It works.

            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