Results 1 to 2 of 2

Thread: Adding property editor file browser popup...

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

    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,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    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
  •  
Qt is a trademark of The Qt Company.