PyQt5: pyuic5 - Unknown Qt widget: QKeySequenceEdit





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















Built a ui with Qt Designer 5.11.1, and I added a QKeySequenceEdit. Now trying to convert the ui to .py, and receiving the error below.



PS C:devapp> pyuic5 app.ui > appui.py
Unknown Qt widget: QKeySequenceEdit


Here is just a simple ui with the Key Sequence Edit.



app.ui



<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QKeySequenceEdit" name="keySequenceEdit">
<property name="geometry">
<rect>
<x>150</x>
<y>380</y>
<width>113</width>
<height>20</height>
</rect>
</property>
</widget>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources/>
<connections/>
</ui>









share|improve this question

























  • please share yoor .ui

    – eyllanesc
    Jan 3 at 15:49











  • Test .ui file added.

    – AQuick
    Jan 3 at 16:05











  • @AQuick This is a bug. Please report it on the pyqt mailing list so that it gets fixed properly.

    – ekhumoro
    Jan 3 at 16:59


















1















Built a ui with Qt Designer 5.11.1, and I added a QKeySequenceEdit. Now trying to convert the ui to .py, and receiving the error below.



PS C:devapp> pyuic5 app.ui > appui.py
Unknown Qt widget: QKeySequenceEdit


Here is just a simple ui with the Key Sequence Edit.



app.ui



<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QKeySequenceEdit" name="keySequenceEdit">
<property name="geometry">
<rect>
<x>150</x>
<y>380</y>
<width>113</width>
<height>20</height>
</rect>
</property>
</widget>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources/>
<connections/>
</ui>









share|improve this question

























  • please share yoor .ui

    – eyllanesc
    Jan 3 at 15:49











  • Test .ui file added.

    – AQuick
    Jan 3 at 16:05











  • @AQuick This is a bug. Please report it on the pyqt mailing list so that it gets fixed properly.

    – ekhumoro
    Jan 3 at 16:59














1












1








1








Built a ui with Qt Designer 5.11.1, and I added a QKeySequenceEdit. Now trying to convert the ui to .py, and receiving the error below.



PS C:devapp> pyuic5 app.ui > appui.py
Unknown Qt widget: QKeySequenceEdit


Here is just a simple ui with the Key Sequence Edit.



app.ui



<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QKeySequenceEdit" name="keySequenceEdit">
<property name="geometry">
<rect>
<x>150</x>
<y>380</y>
<width>113</width>
<height>20</height>
</rect>
</property>
</widget>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources/>
<connections/>
</ui>









share|improve this question
















Built a ui with Qt Designer 5.11.1, and I added a QKeySequenceEdit. Now trying to convert the ui to .py, and receiving the error below.



PS C:devapp> pyuic5 app.ui > appui.py
Unknown Qt widget: QKeySequenceEdit


Here is just a simple ui with the Key Sequence Edit.



app.ui



<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QKeySequenceEdit" name="keySequenceEdit">
<property name="geometry">
<rect>
<x>150</x>
<y>380</y>
<width>113</width>
<height>20</height>
</rect>
</property>
</widget>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources/>
<connections/>
</ui>






python pyqt pyqt5 qt-designer






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 3 at 16:18









eyllanesc

88.2k103564




88.2k103564










asked Jan 3 at 15:28









AQuickAQuick

438




438













  • please share yoor .ui

    – eyllanesc
    Jan 3 at 15:49











  • Test .ui file added.

    – AQuick
    Jan 3 at 16:05











  • @AQuick This is a bug. Please report it on the pyqt mailing list so that it gets fixed properly.

    – ekhumoro
    Jan 3 at 16:59



















  • please share yoor .ui

    – eyllanesc
    Jan 3 at 15:49











  • Test .ui file added.

    – AQuick
    Jan 3 at 16:05











  • @AQuick This is a bug. Please report it on the pyqt mailing list so that it gets fixed properly.

    – ekhumoro
    Jan 3 at 16:59

















please share yoor .ui

– eyllanesc
Jan 3 at 15:49





please share yoor .ui

– eyllanesc
Jan 3 at 15:49













Test .ui file added.

– AQuick
Jan 3 at 16:05





Test .ui file added.

– AQuick
Jan 3 at 16:05













@AQuick This is a bug. Please report it on the pyqt mailing list so that it gets fixed properly.

– ekhumoro
Jan 3 at 16:59





@AQuick This is a bug. Please report it on the pyqt mailing list so that it gets fixed properly.

– ekhumoro
Jan 3 at 16:59












1 Answer
1






active

oldest

votes


















1














It seems that it is a bug, so if a solution is to modify the qtproxies.py that in my case is in /usr/lib/python3.7/site-packages/PyQt5/uic/Compiler/qtproxies.py and add a line in:



class QtWidgets(ProxyNamespace):
# ...
class QCommandLinkButton(QPushButton): pass
class QKeySequenceEdit(QWidget): pass # add this line

# Add all remaining classes.
for _class in _qwidgets:
if _class not in locals():
locals()[_class] = type(_class, (QWidget, ), {})


It is also recommended that you use -o instead of > since sometimes it will cause problems in the second



pyuic5 app.ui -o appui.py -x





share|improve this answer
























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54025247%2fpyqt5-pyuic5-unknown-qt-widget-qkeysequenceedit%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    It seems that it is a bug, so if a solution is to modify the qtproxies.py that in my case is in /usr/lib/python3.7/site-packages/PyQt5/uic/Compiler/qtproxies.py and add a line in:



    class QtWidgets(ProxyNamespace):
    # ...
    class QCommandLinkButton(QPushButton): pass
    class QKeySequenceEdit(QWidget): pass # add this line

    # Add all remaining classes.
    for _class in _qwidgets:
    if _class not in locals():
    locals()[_class] = type(_class, (QWidget, ), {})


    It is also recommended that you use -o instead of > since sometimes it will cause problems in the second



    pyuic5 app.ui -o appui.py -x





    share|improve this answer




























      1














      It seems that it is a bug, so if a solution is to modify the qtproxies.py that in my case is in /usr/lib/python3.7/site-packages/PyQt5/uic/Compiler/qtproxies.py and add a line in:



      class QtWidgets(ProxyNamespace):
      # ...
      class QCommandLinkButton(QPushButton): pass
      class QKeySequenceEdit(QWidget): pass # add this line

      # Add all remaining classes.
      for _class in _qwidgets:
      if _class not in locals():
      locals()[_class] = type(_class, (QWidget, ), {})


      It is also recommended that you use -o instead of > since sometimes it will cause problems in the second



      pyuic5 app.ui -o appui.py -x





      share|improve this answer


























        1












        1








        1







        It seems that it is a bug, so if a solution is to modify the qtproxies.py that in my case is in /usr/lib/python3.7/site-packages/PyQt5/uic/Compiler/qtproxies.py and add a line in:



        class QtWidgets(ProxyNamespace):
        # ...
        class QCommandLinkButton(QPushButton): pass
        class QKeySequenceEdit(QWidget): pass # add this line

        # Add all remaining classes.
        for _class in _qwidgets:
        if _class not in locals():
        locals()[_class] = type(_class, (QWidget, ), {})


        It is also recommended that you use -o instead of > since sometimes it will cause problems in the second



        pyuic5 app.ui -o appui.py -x





        share|improve this answer













        It seems that it is a bug, so if a solution is to modify the qtproxies.py that in my case is in /usr/lib/python3.7/site-packages/PyQt5/uic/Compiler/qtproxies.py and add a line in:



        class QtWidgets(ProxyNamespace):
        # ...
        class QCommandLinkButton(QPushButton): pass
        class QKeySequenceEdit(QWidget): pass # add this line

        # Add all remaining classes.
        for _class in _qwidgets:
        if _class not in locals():
        locals()[_class] = type(_class, (QWidget, ), {})


        It is also recommended that you use -o instead of > since sometimes it will cause problems in the second



        pyuic5 app.ui -o appui.py -x






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 3 at 16:18









        eyllanesceyllanesc

        88.2k103564




        88.2k103564
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54025247%2fpyqt5-pyuic5-unknown-qt-widget-qkeysequenceedit%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            MongoDB - Not Authorized To Execute Command

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

            How to fix TextFormField cause rebuild widget in Flutter