Results 1 to 4 of 4

Thread: Set property for custom plugin widget

  1. #1
    Join Date
    May 2012
    Posts
    11
    Qt products
    Qt4

    Default Set property for custom plugin widget

    For instance, I have a custom plugin widget, which is made up of a QComboBox and a QLineEdit. Now I want to set the properties of each widget.
    Usually, we can change the property by the table which is in the lower right corner of Qt designer. When I press the mouse on my custom plugin widget I can not focus on any of the widget but only the whole custom plugin widget. Could any one can help me to focus on the signal widget? Thank you very much!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Set property for custom plugin widget

    You can't do that since Designer can only modify properties that are exposed by the widget. Properties of the combo and line edit are not exposed by your widget. You either need to do that for every property you need or resign from using a custom plugin for your widget and instead compose the user interface manually from two widgets you want to have direct access to.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    May 2012
    Posts
    11
    Qt products
    Qt4

    Default Re: Set property for custom plugin widget

    Thank you! You know, I hope you are not right, cz I will have a lot of work to do!

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Set property for custom plugin widget

    I'm sorry but I am right.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Custom Property On Custom Widget
    By Ashutosh2k1 in forum Qt Programming
    Replies: 29
    Last Post: 28th October 2014, 12:16
  2. File dialog for custom widget property?
    By TheJim01 in forum Newbie
    Replies: 1
    Last Post: 6th May 2010, 10:14
  3. Replies: 4
    Last Post: 5th March 2010, 14:20
  4. Designer plugin widget property not recognized
    By janus in forum Qt Programming
    Replies: 7
    Last Post: 14th April 2009, 21:26
  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.