Results 1 to 2 of 2

Thread: Custom property in designer

  1. #1
    Join Date
    Sep 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Custom property in designer

    I create custom widget. And i want to create custum property:
    ex:
    struct MyStruct
    {
    int t1;
    double t2;
    ....
    };
    Q_PROPERTY(MyStruct propName READ .... WRITE ...)

    This property i can't edit in property editor(desiner).
    It's exist any way to do it? (For example in tree style).

    PS. Sorry for my bad English.

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Custom property in designer

    The easiest way to handle complex custom types is really to implement a menu entry "Edit data..." or something for your widgets in Designer. This is described here: http://doc.trolltech.com/4.6/designe...extension.html .

Similar Threads

  1. Replies: 4
    Last Post: 5th March 2010, 14:20
  2. QT Designer like property editor
    By dosto.walla in forum Qt Tools
    Replies: 2
    Last Post: 24th October 2008, 00:13
  3. Replies: 6
    Last Post: 14th April 2007, 07:59
  4. QPixmap designer property not showing up
    By high_flyer in forum Qt Programming
    Replies: 1
    Last Post: 15th March 2006, 19:56
  5. custom plugin designer property with out a variable?
    By high_flyer in forum Qt Programming
    Replies: 1
    Last Post: 15th March 2006, 19:11

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.