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. Issue with Porting PropertyBrowser framework to Qt 5.1
Forum Updated to NodeBB v4.3 + New Features

Issue with Porting PropertyBrowser framework to Qt 5.1

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

    hi all,
    I am trying to port my application to Qt5 and most of the code is successfully ported to Qt5. Currently i am facing an issue with porting the Property Browser framework to Qt5. I have taken the new Property Browser framework code from the Qt 5 source git repository. When i am trying to compile i am getting this error, "invalid application of 'sizeof' to incomplete type 'QStaticAssertFailure<false>" in file qglobal.h when i am using qMetaTypeId() method. The code in qvariantproperty.cpp which causes this issue is given below,
    @QT_BEGIN_NAMESPACE
    class QtEnumPropertyType
    {
    };
    class QtFlagPropertyType
    {
    };
    class QtGroupPropertyType
    {
    };
    QT_END_NAMESPACE
    Q_DECLARE_METATYPE(QtEnumPropertyType)
    Q_DECLARE_METATYPE(QtFlagPropertyType)
    Q_DECLARE_METATYPE(QtGroupPropertyType)
    QT_BEGIN_NAMESPACE
    int QtVariantPropertyManager::enumTypeId()
    {
    return qMetaTypeId<QtEnumPropertyType>();
    }
    int QtVariantPropertyManager::flagTypeId()
    {
    return qMetaTypeId<QtFlagPropertyType>();
    }@

    I am able to generate the DLL file using this Property Browser framework by replacing "return qMetaTypeId<QtEnumPropertyType>()" with "return 0". But if i am using like this then i will not be able to use Enum type property inside my Property Sheet. Is there any solution to overcome this issue?

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

      Is this the repo you tried:
      "git://gitorious.org/qt-solutions/qt-solutions.git":git://gitorious.org/qt-solutions/qt-solutions.git
      Listed on:
      "http://qt.gitorious.org/qt-solutions/":http://qt.gitorious.org/qt-solutions/

      That one worked for me on Ubuntu, Windows, and OS X. But I was getting macdeployqt difficulties in release build.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mammamia
        wrote on last edited by
        #3

        Hi Boyle,
        I have downloaded the new code from the repo which you have mentioned. But the same problem persists. Currently i am trying to build on Windows. I have tried to build "simple" inside the example directory and it shows the same error which i have mentioned above. Do i have to do any modification before building the source code?

        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