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. QtPropertyBrowser - How do I include it? [SOLVED]
Forum Updated to NodeBB v4.3 + New Features

QtPropertyBrowser - How do I include it? [SOLVED]

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 6.8k 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
    Sibzor
    wrote on last edited by
    #1

    I need to add some form of property editor to my project and in my search I came across this:
    http://www.wiki.crossplatform.ru/index.php/The_Property_Browser_Framework

    It seems ideal, or at least it would be if I could figure out how to include it in my project.

    I was first of all told to go here and download and build the source:
    https://qt.gitorious.org/qt-solutions/qt-solutions/source/fd22bee22274975c56f1c10d87ee9fd2c0818f83:qtpropertybrowser

    I managed to build the source, and it has created a couple of dll files in my bin directory (QtSolutions_PropertyBrowser-head.dll) but any attempt to include any of the header files such as #include <QtTreePropertyBrowser> or #include <QtIntPropertyManager> just results in error: C1083: Cannot open include file: 'QtTreePropertyBrowser': No such file or directory.

    How I resolve this I don't know as I cant seem to find any kind of project settings in this QT Creator (I am new to QT and coming from Visual Studio btw).

    However I am not even convinced that I am doing the right thing here anyway because after more googling I find this post:
    https://qt-project.org/forums/viewthread/40584
    Which seems to suggest that QtPropertyBrowser is part of QtTools which in turn is part of QT. More searching later I discover QtTools inside an installation of Qt5.2, however I am not using 5.2 I am using the latest 5.3.1 and there is no sign of any QtTools in version 5.3.1

    Can someone please tell me the proper way that I am supposed to obtain and use this widget and where exactly I am supposed to find it?

    Why was it included in 5.2 but then removed again in 5.3? Has it been superseded or something?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Sibzor
      wrote on last edited by
      #2

      No-one has any ideas at all about this?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        Please wait 24 to 72 hours before bumping your own thread, not all people on this forum lives in the same time zone as you so your question might not have been read yet.

        Now to your problem, since you've built the Qt solution version (which is the right one by the way, you can see it further in the thread you're mentioning) successfully, you can follow the instructions provided in the INSTALL.TXT file to use it

        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
        • S Offline
          S Offline
          Sibzor
          wrote on last edited by
          #4

          Hi and thank you for your reply. I had actually read the install.txt file, but it was extremely long winded and amongst all the irrelevant stuff I had missed the one and only thing I needed to do to get this all working. However, after I had realized that QtTreePropertyBrowser now comes as part of Qt, I found that there was no install.txt file for anyone to refer to any more and so I am back to post my solution in the hope that maybe it will help someone else in the future.

          For anyone else who ever need to use this control, don't bother downloading it because you can find it inside your Qt installation folder in (in my case):

          C:\qt\Qt5.3.1\5.3\Src\qttools\src\shared\qtpropertybrowser

          Inside there there are 2 .pri files. The qtpropertybrowser.pri is the one you are interested in.

          Open your .pro project file inside Qt Creator and at the bottom of it add:
          include(C:\Qt\Qt5.3.1\5.3\Src\qttools\src\shared\qtpropertybrowser\qtpropertybrowser.pri)

          And thats it. It will appear in your solution a few seconds later and you can include the files and use it. You might need to do a qmake also but thats about it.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            You're welcome !

            Well, good news then, even better !

            Can you also please update the thread title prepending [solved] so other forum users may know a solution has been found :)

            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

            • Login

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