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. How to install qtstyleplugins
Forum Updated to NodeBB v4.3 + New Features

How to install qtstyleplugins

Scheduled Pinned Locked Moved Solved General and Desktop
qtstylepluginsplugin
7 Posts 2 Posters 5.5k Views 2 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.
  • A Offline
    A Offline
    ahonorat
    wrote on 9 Apr 2016, 18:53 last edited by
    #1

    Hi there,

    I'm new on Qt and I wanted to compile an old project using QCleanlooksStyle which is not supported in recent Qt versions. So I have downloaded the qtstyleplugins but I cannot manage to use it. I used the last plugin version available on github since the original repository seems to be not clonable.

    Anyway the compilation of the plugin with Qt 5.6 (and Qt Creator 3.6) fails because of a not found header: "QtWidgets/private/qpixmapstyle_p.h" . Do i have some other things to install ?
    Before testing with the last plugin version on github, I've tried to use the release version 5.0.0 which compiled fine but which was not visible under Qt Creator. So my second question is: once qtstyleplugins is compiled, how do I install it ?

    Thanks!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 9 Apr 2016, 22:31 last edited by
      #2

      Hi and welcome to devnet,

      Looks like the missing style is available with Qt 5.7

      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
        ahonorat
        wrote on 11 Apr 2016, 09:21 last edited by
        #3

        Thanks ! Unfortunately it seems that Qt 5.7 is not yet available from the provided linux installer, but I guess it will be available soon !

        in the meantime, once compiled, how do I install the plugin on Qt creator ? Do I just drop the .so in QtCreator folder ?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 11 Apr 2016, 20:41 last edited by
          #4

          Why install it in Qt Creator ? If you want to use in your application it your should put it in your Qt build folder under plugins/styles. What will likely be done for you with a call to make install after you build the module.

          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
            ahonorat
            wrote on 12 Apr 2016, 04:56 last edited by
            #5

            Oh ok ! So I compiled the plugin (version 5.0.0) and installed it this way. Now the problem is that Qt does not find the modules defined by the plugin ("cleanlooks", or maybe "styles/cleanlooks"), although there is a folder plugins/styles with the right libs in it. Do you have a last hint ? (I believe the solution is really close, but I can't find it...)

            I have been looking on this page and it looks like qtstyleplugins has not the same required structure (no qt_<module>.pri file for example).

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 12 Apr 2016, 22:58 last edited by
              #6

              There's no module for it, a plugin goes in the corresponding plugin subfolder e.g. the image format plugins.

              Here you can find an example on how to select a style plugin at application startup.

              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
                ahonorat
                wrote on 13 Apr 2016, 20:08 last edited by
                #7

                Thanks a lot :) It finally works !

                (I've had a look on the Echo plugin example and not on this one unfortunately)

                1 Reply Last reply
                0

                1/7

                9 Apr 2016, 18:53

                • Login

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