Results 1 to 2 of 2

Thread: Custom widget properties not showing in Qt Designer

  1. #1
    Join Date
    Nov 2010
    Posts
    4
    Qt products
    Qt3 Qt4 Qt/Embedded PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Custom widget properties not showing in Qt Designer

    I have a custom widget that is derived from QPushButton, and adds a couple properties, defined with Q_PROPERTY. I'd like to be able to use this widget and set its properties from within Qt Designer.

    I have created a plugin and installed it in the Qt Designer plugins directory. It shows up in the widget box and I can create instances of it in a form, but I don't see the properties I defined in my widget subclass. I thought they would show up automatically since I am using Q_PROPERTY. Am I missing something?

    Thanks!

  2. #2
    Join Date
    Nov 2010
    Posts
    4
    Qt products
    Qt3 Qt4 Qt/Embedded PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: Custom widget properties not showing in Qt Designer

    OK, I figured it out. I had set my properties to read only because I didn't want clients to be able to change the properties. But by not setting a Q_PROPERTY WRITE property, there was no way for Qt Designer to set the properties either, so they weren't showing up in the Property Editor!

Similar Threads

  1. QT4 custom designer plugin properties ignored
    By Intangir in forum Qt Programming
    Replies: 7
    Last Post: 23rd May 2015, 12:56
  2. Is there a widget for the properties as in Qt Designer?
    By flamaros in forum Qt Programming
    Replies: 3
    Last Post: 31st March 2010, 13:37
  3. QComboBox Custom Widget has missing designer properties
    By vieraci in forum Qt Programming
    Replies: 5
    Last Post: 9th December 2009, 14:30
  4. Replies: 15
    Last Post: 25th March 2007, 04:40
  5. Limiting values for custom designer properties
    By high_flyer in forum Qt Programming
    Replies: 4
    Last Post: 16th March 2006, 13:27

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.