Results 1 to 2 of 2

Thread: Adding property editor file browser popup...

  1. #1
    Join Date
    Jan 2006
    Location
    Florida
    Posts
    24
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Adding property editor file browser popup...

    OK,

    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).

  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: Adding property editor file browser popup...

    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.

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.