Results 1 to 1 of 1

Thread: Why Q_PROPERTY can not appear in designer?

  1. #1
    Join Date
    Apr 2011
    Posts
    31
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Why Q_PROPERTY can not appear in designer?

    3 weeks ago I created custom widget with Q_PROPERTY as type QString. All works fine. Yesterday I made another one plugin with widget using same technique. But property of this widget does not appear in Designer. I created new plugin as likeness of first one. Project file is copy of the first with only source file names changed. Sources are copies too with other classes and files name. The only one noticable difference is - header file of widget is in low case but class name inside has uppercase letters.

    If I make same property not as "static" but as "dynamic" in domXml() method of this plugin - then property appears. But I need static to bind the method processing string entered.

    What can go wrong? What should I check to find problem?


    Added after 1 44 minutes:


    Solved. Designer plugin method name() must mandatory return same name as custom widget class has.
    Last edited by Gourmet; 3rd November 2016 at 15:01.

Similar Threads

  1. Q_PROPERTY with binding to designer
    By Big_Stone88 in forum Qt Programming
    Replies: 7
    Last Post: 18th April 2016, 14:36
  2. Q_property
    By Ini in forum Qt Programming
    Replies: 1
    Last Post: 4th April 2016, 08:39
  3. Q_property
    By micky in forum Qt Programming
    Replies: 2
    Last Post: 23rd April 2012, 18:51
  4. Why and when to use Q_PROPERTY
    By Vanir in forum Qt Programming
    Replies: 4
    Last Post: 22nd November 2007, 09:25
  5. How to Use Q_PROPERTY
    By mitesh_modi in forum Qt Programming
    Replies: 7
    Last Post: 20th June 2006, 14:49

Tags for this Thread

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.