View Full Version : Adding property editor file browser popup...

25th April 2007, 18:33

So I am developing a designer plugin and I'm using Q_PROPERTY() to add properties to the property editor menu. I can do simple stuff like QStrings, enums, bools, etc, no problem, BUT, is there a way to add something like some of the native Designer widgets has where when you click on it in the property editor a file browser menu pops up (like the icon property in many of the designer widgets).

25th April 2007, 23:03
A general answer is to implement a QDesignerPropertySheetExtension but it's quite complicated so it might prove simpler to implement a QDesignerTaskMenuExtension to provide a custom action that will call the file browser and setup the property value after you pick a file.