Results 1 to 2 of 2

Thread: Custom widget + Qt Designer

  1. #1
    Join Date
    Jan 2006
    Location
    Skopje, Macedonia
    Posts
    11
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Custom widget + Qt Designer

    Hi,

    I 'm writing a custom widget.
    I use QPainter for painting the widget. The painting style depends on some parameters, and it is defined as:

    struct PaintParams
    {
    int PenWidth;
    Qt::PenStyle pstyle;
    QColor PenColor;
    Qt::BrushStyle bstyle;
    QColor BrushColor;
    }

    I want these params to appear in Qt Designer's Property Editor in the same way as font property.

    How can this be done?
    Should I define it as QObject instead struct?

    GREETZ, chombium

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Custom widget + Qt Designer


Similar Threads

  1. Custom widget - Only works in Designer
    By Darhuuk in forum Qt Tools
    Replies: 6
    Last Post: 8th January 2008, 00:46
  2. custom plug-in widget in another custom plug-in widget.
    By MrGarbage in forum Qt Programming
    Replies: 6
    Last Post: 27th August 2007, 15:38
  3. QT4: Custom widget for QT Designer
    By Michiel in forum Qt Tools
    Replies: 4
    Last Post: 4th May 2006, 13:35
  4. Replies: 4
    Last Post: 1st March 2006, 23:11
  5. Replies: 4
    Last Post: 6th February 2006, 14:30

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.