Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-81073

uic python: support for customwidgets imports is missing

    XMLWordPrintable

    Details

    • Commits:
      3f6275960c4da87a18f3740bc3fef68dcf8a65d1 (qt/qtbase/5.14)

      Description

      When a ui file contains custom widgets:

       <customwidgets>                                                                                       
        <customwidget>                                                                                       
         <class&gt;SomeExternalClass</class&gt;
         <extends>QWidget</extends>                                                                          
         <header>lib.some_module.h</header>                                                                  
         <container>1</container>                                                                            
        </customwidget>                                                                                      
       </customwidgets> 
      
      • You can see saving the location from the designer adds the .h to the directory location
      • uic -g python will generate the code:
        import SomeExternalClass
        

        but it should be:

        from lib.some_module import SomeExternalClass
        

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            crmaurei Cristian Maureira-Fredes
            Reporter:
            crmaurei Cristian Maureira-Fredes
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes