Results 1 to 6 of 6

Thread: reuse QtDesigner?

  1. #1
    Join Date
    Jun 2008
    Posts
    35
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default reuse QtDesigner?

    Hello,

    Is there any way to reuse QtDesigner functionality for edit QObject derived objects propeties and QObject derived object trees in custom program? It can be very useful in practice to avoid coding in case of custom object tree managment.

    For example, use ObjectInspector widget and PropertyEditor widget in custom program?

  2. #2
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: reuse QtDesigner?

    Take a look at QtCreator and how it uses its designer plugin. I think you can do the same in your program.
    I'm a rebel in the S.D.G.

  3. #3
    Join Date
    Jun 2008
    Posts
    35
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: reuse QtDesigner?

    Could you point me to the way how make auto-generate GUI and add,edit,remove operation code for data objects?

    It is very boring (in case of many data-classes) to make dialog per class manually with edit box per object data field and listbox (models) per array of contained objects.

    C++
    Last edited by nicolas1; 20th March 2009 at 13:14.

  4. #4
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: reuse QtDesigner?

    I have never used it myself before. So it will take me some time to investigate it.
    I'm a rebel in the S.D.G.

  5. #5
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: reuse QtDesigner?

    You can find one (or maybe more) PropertyEditor on QtApps.org

    As for the object inspector it is simply a tree view showing object trees maintained by the meta object system.

    These components are available in Qt Designer sources, but are fully independent from the QtDesigner application and can probably be made independent from the rest of Qt Designer core lib easily enough if you take some time to study the code.
    Current Qt projects : QCodeEdit, RotiDeCode

  6. #6
    Join Date
    Jun 2008
    Posts
    35
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: reuse QtDesigner?

    Yes, for this part there is no problem.

    Problem arise when I want to serialialize/deserialize data with pointers (for example, to child objects). QDataStream does not handle pointers... ((
    In QtDesigner, trolltech uses special c++ code generator (for example, ui4.cpp/ui4.h), which generates ser/deser code for QWidget -derived classes to xml Dom. Is there any same kind of tool?

    How to make serialialize/deserialize of QObject derives?

Similar Threads

  1. Which QtDesigner to use with Qtopia
    By Benjamin in forum Qt for Embedded and Mobile
    Replies: 10
    Last Post: 19th December 2007, 10:12
  2. QtDesigner linker error MSVC++ 2005
    By The Storm in forum Installation and Deployment
    Replies: 1
    Last Post: 15th September 2007, 22:51
  3. Replies: 10
    Last Post: 27th November 2006, 19:37
  4. Replies: 2
    Last Post: 17th October 2006, 19:25
  5. QtDesigner Layout Help
    By mentat in forum Qt Tools
    Replies: 5
    Last Post: 13th July 2006, 14:55

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.