Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QComboBox bug in Qt5.15
Forum Updated to NodeBB v4.3 + New Features

QComboBox bug in Qt5.15

Scheduled Pinned Locked Moved Unsolved General and Desktop
25 Posts 7 Posters 3.3k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S sjlee

    Thanks for the answer.

    It must be a bug. I think it might be wrong width calculation for a string containing ampersand characters. Width calculation would wrongly disregard ampersand characters. I guess you would be confused with a menu item containing shortcut mark such as "&Copy".

    1. It was okay in Qt5.14.2.

    2. Other longer string that don't have ampersand character appears correctly. For example, "Read + Write" appears correctly.

    JonBJ Offline
    JonBJ Offline
    JonB
    wrote on last edited by JonB
    #4

    @sjlee
    IIRC there was specifically a bug quite "a while ago" where a literal & in a menu item got changed into ellipses. Discussed somewhere in this forum. But how you find that now I'm not sure....

    Ah, see https://forum.qt.io/topic/133278/ampersand-works-strange-way-in-menu-action-title-in-qt-6-x ! That was Qt6, but maybe it started at Qt 5.15?
    Oh, I have only just realised that is menu items, you are talking combo box items. So don't don't whether that is germane....
    Just in case, have you tried doubling to && in a combo item?

    S 1 Reply Last reply
    0
    • JonBJ JonB

      @sjlee
      IIRC there was specifically a bug quite "a while ago" where a literal & in a menu item got changed into ellipses. Discussed somewhere in this forum. But how you find that now I'm not sure....

      Ah, see https://forum.qt.io/topic/133278/ampersand-works-strange-way-in-menu-action-title-in-qt-6-x ! That was Qt6, but maybe it started at Qt 5.15?
      Oh, I have only just realised that is menu items, you are talking combo box items. So don't don't whether that is germane....
      Just in case, have you tried doubling to && in a combo item?

      S Offline
      S Offline
      sjlee
      wrote on last edited by sjlee
      #5

      @JonB

      Just in case, have you tried doubling to && in a combo item?

      Of course, I tried it. Two ampersand characters change into "...".

      I just want to report this bug. Already, I have to setMinimumWidth(mimimumSizeHint().width()+4) to workaround the problem.

      FYI, this bug persists in 5.15.9.

      Axel SpoerlA 1 Reply Last reply
      0
      • S sjlee

        @JonB

        Just in case, have you tried doubling to && in a combo item?

        Of course, I tried it. Two ampersand characters change into "...".

        I just want to report this bug. Already, I have to setMinimumWidth(mimimumSizeHint().width()+4) to workaround the problem.

        FYI, this bug persists in 5.15.9.

        Axel SpoerlA Offline
        Axel SpoerlA Offline
        Axel Spoerl
        Moderators
        wrote on last edited by
        #6

        @sjlee A double ampersand "&&" is the right way to escape it and it should definitively work, provided there is enough space for the entire string. If it doesn't, there is something wrong on our side or on yours.
        Could you please post a compilable minimal example?

        Software Engineer
        The Qt Company, Oslo

        1 Reply Last reply
        3
        • S Offline
          S Offline
          sjlee
          wrote on last edited by sjlee
          #7

          You guys would think the problem may be complex. But it's very simple. I don't think you need the code.

          See the simple combobox:
          alt text

          alt text

          You could be confused with combobox item between macOS and other OS. While macOS combobox items are just menu items, it's just combobox item in Linux or Windows in native framework.

          SGaistS 1 Reply Last reply
          0
          • S sjlee

            You guys would think the problem may be complex. But it's very simple. I don't think you need the code.

            See the simple combobox:
            alt text

            alt text

            You could be confused with combobox item between macOS and other OS. While macOS combobox items are just menu items, it's just combobox item in Linux or Windows in native framework.

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #8

            Hi,

            Well, yes, the code is still needed, and even more the font used by your application.

            One thing that you don't seem to realise is that replacing a + with &, depending on the font you use, will not take the same space hence it might show the whole string in one case and get elided in the second.

            Ensuring everybody runs the same minimal application will allow to better understand what happens to you.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            S 1 Reply Last reply
            2
            • SGaistS SGaist

              Hi,

              Well, yes, the code is still needed, and even more the font used by your application.

              One thing that you don't seem to realise is that replacing a + with &, depending on the font you use, will not take the same space hence it might show the whole string in one case and get elided in the second.

              Ensuring everybody runs the same minimal application will allow to better understand what happens to you.

              S Offline
              S Offline
              sjlee
              wrote on last edited by
              #9

              @SGaist

              The symptom is identical on all Linux distros regardless of their system font. The problem would be related with string count.

              However, while setMinimumWidth(minimumSizeHint().width()+3) workaround for some fonts, setMinimumWidth(minimumSizeHint().width()+4) do for other fonts.

              Thank you.

              C 1 Reply Last reply
              0
              • S sjlee

                @SGaist

                The symptom is identical on all Linux distros regardless of their system font. The problem would be related with string count.

                However, while setMinimumWidth(minimumSizeHint().width()+3) workaround for some fonts, setMinimumWidth(minimumSizeHint().width()+4) do for other fonts.

                Thank you.

                C Offline
                C Offline
                ChrisW67
                wrote on last edited by
                #10

                This has nothing to do with the ampersand. That can plainly be seen from your screenshot where text other than the ampersand has been elided. Between version of Qt this space seems to have changed by a pixel or two.

                This has only to do with the text items in the combo box that are longer than the space determined at the time the QComboBox was first shown (the default behaviour). The code below generates a combo box that correctly displays "Read Only" and "Read & Write" at start. However, a longer item added after the first show has its text elided exactly as I described earlier.

                // Linux Qt 5.15.3, GCC 11.3, 64-bit
                #include <QApplication>
                #include <QComboBox>
                #include <QTimer>
                
                int main(int argc, char **argv) {
                        QApplication app(argc, argv);
                
                        QComboBox *cb1 = new QComboBox();
                        // cb1->setSizeAdjustPolicy(QComboBox::AdjustToContents);
                        cb1->addItem(QStringLiteral("Read Only"));
                        cb1->addItem(QStringLiteral("Read & Write"));
                        cb1->show();
                
                        QTimer::singleShot(5000, [=]() { cb1->addItem(QStringLiteral("Text that is too long")); } );
                        return app.exec();
                }
                

                333f01aa-2415-4b44-9f88-5846ee222a3f-image.png 607746b1-3f38-43e6-a7ad-ccff5fcc6810-image.png

                You can have the combo box rethink any time an item is added by uncommenting the line above. An unrestrained QComboBox will resize if needed, but in your example the table imposed a constraint on the combo box size.

                S 1 Reply Last reply
                4
                • C ChrisW67

                  This has nothing to do with the ampersand. That can plainly be seen from your screenshot where text other than the ampersand has been elided. Between version of Qt this space seems to have changed by a pixel or two.

                  This has only to do with the text items in the combo box that are longer than the space determined at the time the QComboBox was first shown (the default behaviour). The code below generates a combo box that correctly displays "Read Only" and "Read & Write" at start. However, a longer item added after the first show has its text elided exactly as I described earlier.

                  // Linux Qt 5.15.3, GCC 11.3, 64-bit
                  #include <QApplication>
                  #include <QComboBox>
                  #include <QTimer>
                  
                  int main(int argc, char **argv) {
                          QApplication app(argc, argv);
                  
                          QComboBox *cb1 = new QComboBox();
                          // cb1->setSizeAdjustPolicy(QComboBox::AdjustToContents);
                          cb1->addItem(QStringLiteral("Read Only"));
                          cb1->addItem(QStringLiteral("Read & Write"));
                          cb1->show();
                  
                          QTimer::singleShot(5000, [=]() { cb1->addItem(QStringLiteral("Text that is too long")); } );
                          return app.exec();
                  }
                  

                  333f01aa-2415-4b44-9f88-5846ee222a3f-image.png 607746b1-3f38-43e6-a7ad-ccff5fcc6810-image.png

                  You can have the combo box rethink any time an item is added by uncommenting the line above. An unrestrained QComboBox will resize if needed, but in your example the table imposed a constraint on the combo box size.

                  S Offline
                  S Offline
                  sjlee
                  wrote on last edited by sjlee
                  #11

                  @ChrisW67

                  Please try your code with "landscape & this" and "portrait & this" items instead of ro/rw. I mean longer string than its width.

                  Thank you.

                  JonBJ C 2 Replies Last reply
                  0
                  • S sjlee

                    @ChrisW67

                    Please try your code with "landscape & this" and "portrait & this" items instead of ro/rw. I mean longer string than its width.

                    Thank you.

                    JonBJ Offline
                    JonBJ Offline
                    JonB
                    wrote on last edited by JonB
                    #12

                    @ChrisW67
                    I too have Qt 15.5.3. I am under Ubuntu 22.04, with GNOME desktop. I think you are different because of the "X" in the top left of your combo, I do not get this, I think you are using a different window manager?

                    You will have to bear with my explanations, because I cannot figure how to take screen shots with a combo dropped down :(

                    I do not get the behaviour you show with your code. When the "Text that ..." is added I get no ellipsis, instead the whole line is shown but with the dropped-down portion being allowed to be wider than the combo box width, so it sticks out right below. Just saying.

                    @sjlee
                    Your instructions are most unclear as to exactly what you want the whole thing changed to. I won't go through all the combinations I tried as to what precisely you might mean, they behave in various ways. However, I did come across one oddity which just might be a clue to what is going on and the oddity of &. Try exactly this:

                    int main(int argc, char **argv)
                    {
                        QApplication app(argc, argv);
                    
                        QComboBox *cb1 = new QComboBox();
                        cb1->addItem(QStringLiteral("portrait & this"));
                        cb1->show();
                    
                        QTimer::singleShot(5000, [=]() { cb1->addItem(QStringLiteral("landscap & this")); } );
                        return app.exec();
                    }
                    

                    Note that my landscap [sic.] is deliberately written like this. Now when I do this if you look very closely at the appended item I see

                    landsc..._this
                    

                    The space before this is an underlined space. That implies [to me] that at some level Qt is treating the & [ampersand followed by space] as shortcut indicator, not a literal ampersand. And my guess is that somewhere in the ellipsisation code this "incorrect interpretation" is made. But not always, because it does not happen in other cases, e.g. landscape & this shows as landsca...& this, no shortcut. Maybe something like "if & is the last character "chopped off" by inserting ellipses then it incorrectly treats the following, preserved character as having been marked as a shortcut by the removed & preceding it".

                    I don't know whether this helps! But maybe there is indeed some special treatment of & going on here, only showing up under special circumstances?

                    Christian EhrlicherC S C 3 Replies Last reply
                    0
                    • JonBJ JonB

                      @ChrisW67
                      I too have Qt 15.5.3. I am under Ubuntu 22.04, with GNOME desktop. I think you are different because of the "X" in the top left of your combo, I do not get this, I think you are using a different window manager?

                      You will have to bear with my explanations, because I cannot figure how to take screen shots with a combo dropped down :(

                      I do not get the behaviour you show with your code. When the "Text that ..." is added I get no ellipsis, instead the whole line is shown but with the dropped-down portion being allowed to be wider than the combo box width, so it sticks out right below. Just saying.

                      @sjlee
                      Your instructions are most unclear as to exactly what you want the whole thing changed to. I won't go through all the combinations I tried as to what precisely you might mean, they behave in various ways. However, I did come across one oddity which just might be a clue to what is going on and the oddity of &. Try exactly this:

                      int main(int argc, char **argv)
                      {
                          QApplication app(argc, argv);
                      
                          QComboBox *cb1 = new QComboBox();
                          cb1->addItem(QStringLiteral("portrait & this"));
                          cb1->show();
                      
                          QTimer::singleShot(5000, [=]() { cb1->addItem(QStringLiteral("landscap & this")); } );
                          return app.exec();
                      }
                      

                      Note that my landscap [sic.] is deliberately written like this. Now when I do this if you look very closely at the appended item I see

                      landsc..._this
                      

                      The space before this is an underlined space. That implies [to me] that at some level Qt is treating the & [ampersand followed by space] as shortcut indicator, not a literal ampersand. And my guess is that somewhere in the ellipsisation code this "incorrect interpretation" is made. But not always, because it does not happen in other cases, e.g. landscape & this shows as landsca...& this, no shortcut. Maybe something like "if & is the last character "chopped off" by inserting ellipses then it incorrectly treats the following, preserved character as having been marked as a shortcut by the removed & preceding it".

                      I don't know whether this helps! But maybe there is indeed some special treatment of & going on here, only showing up under special circumstances?

                      Christian EhrlicherC Offline
                      Christian EhrlicherC Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on last edited by
                      #13

                      Please make sure you have the same QStyle::SH_ComboBox_Popup setting. It depends on the style used.

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      1 Reply Last reply
                      0
                      • JonBJ JonB

                        @ChrisW67
                        I too have Qt 15.5.3. I am under Ubuntu 22.04, with GNOME desktop. I think you are different because of the "X" in the top left of your combo, I do not get this, I think you are using a different window manager?

                        You will have to bear with my explanations, because I cannot figure how to take screen shots with a combo dropped down :(

                        I do not get the behaviour you show with your code. When the "Text that ..." is added I get no ellipsis, instead the whole line is shown but with the dropped-down portion being allowed to be wider than the combo box width, so it sticks out right below. Just saying.

                        @sjlee
                        Your instructions are most unclear as to exactly what you want the whole thing changed to. I won't go through all the combinations I tried as to what precisely you might mean, they behave in various ways. However, I did come across one oddity which just might be a clue to what is going on and the oddity of &. Try exactly this:

                        int main(int argc, char **argv)
                        {
                            QApplication app(argc, argv);
                        
                            QComboBox *cb1 = new QComboBox();
                            cb1->addItem(QStringLiteral("portrait & this"));
                            cb1->show();
                        
                            QTimer::singleShot(5000, [=]() { cb1->addItem(QStringLiteral("landscap & this")); } );
                            return app.exec();
                        }
                        

                        Note that my landscap [sic.] is deliberately written like this. Now when I do this if you look very closely at the appended item I see

                        landsc..._this
                        

                        The space before this is an underlined space. That implies [to me] that at some level Qt is treating the & [ampersand followed by space] as shortcut indicator, not a literal ampersand. And my guess is that somewhere in the ellipsisation code this "incorrect interpretation" is made. But not always, because it does not happen in other cases, e.g. landscape & this shows as landsca...& this, no shortcut. Maybe something like "if & is the last character "chopped off" by inserting ellipses then it incorrectly treats the following, preserved character as having been marked as a shortcut by the removed & preceding it".

                        I don't know whether this helps! But maybe there is indeed some special treatment of & going on here, only showing up under special circumstances?

                        S Offline
                        S Offline
                        sjlee
                        wrote on last edited by
                        #14

                        @JonB
                        FYI, You can capture image for combobox popup using gimp (File > Create > Screenshot). You are unable to capture using the PrtScrn key since the combobox grabbed the keyboard focus.

                        JonBJ 1 Reply Last reply
                        0
                        • S sjlee

                          @JonB
                          FYI, You can capture image for combobox popup using gimp (File > Create > Screenshot). You are unable to capture using the PrtScrn key since the combobox grabbed the keyboard focus.

                          JonBJ Offline
                          JonBJ Offline
                          JonB
                          wrote on last edited by JonB
                          #15

                          @sjlee
                          I installed gimp. Maybe you can make it work, I can't, at best I get a black rectangle captured for the combo box! I think/hope you can manage without a screenshot from my explanation, maybe you can reproduce same (if you use same default fonts/sizes etc. as I get).

                          1 Reply Last reply
                          0
                          • S sjlee

                            @ChrisW67

                            Please try your code with "landscape & this" and "portrait & this" items instead of ro/rw. I mean longer string than its width.

                            Thank you.

                            C Offline
                            C Offline
                            ChrisW67
                            wrote on last edited by
                            #16

                            @sjlee said in QComboBox bug in Qt5.15:

                            @ChrisW67

                            Please try your code with "landscape & this" and "portrait & this" items instead of ro/rw. I mean longer string than its width.

                            Thank you.

                            @sjlee You mean text that is longer than the combo box width, like "Text that is too long" that you already have an example of? How about you provide your code that demonstrates the alleged bug.

                            1 Reply Last reply
                            2
                            • JonBJ JonB

                              @ChrisW67
                              I too have Qt 15.5.3. I am under Ubuntu 22.04, with GNOME desktop. I think you are different because of the "X" in the top left of your combo, I do not get this, I think you are using a different window manager?

                              You will have to bear with my explanations, because I cannot figure how to take screen shots with a combo dropped down :(

                              I do not get the behaviour you show with your code. When the "Text that ..." is added I get no ellipsis, instead the whole line is shown but with the dropped-down portion being allowed to be wider than the combo box width, so it sticks out right below. Just saying.

                              @sjlee
                              Your instructions are most unclear as to exactly what you want the whole thing changed to. I won't go through all the combinations I tried as to what precisely you might mean, they behave in various ways. However, I did come across one oddity which just might be a clue to what is going on and the oddity of &. Try exactly this:

                              int main(int argc, char **argv)
                              {
                                  QApplication app(argc, argv);
                              
                                  QComboBox *cb1 = new QComboBox();
                                  cb1->addItem(QStringLiteral("portrait & this"));
                                  cb1->show();
                              
                                  QTimer::singleShot(5000, [=]() { cb1->addItem(QStringLiteral("landscap & this")); } );
                                  return app.exec();
                              }
                              

                              Note that my landscap [sic.] is deliberately written like this. Now when I do this if you look very closely at the appended item I see

                              landsc..._this
                              

                              The space before this is an underlined space. That implies [to me] that at some level Qt is treating the & [ampersand followed by space] as shortcut indicator, not a literal ampersand. And my guess is that somewhere in the ellipsisation code this "incorrect interpretation" is made. But not always, because it does not happen in other cases, e.g. landscape & this shows as landsca...& this, no shortcut. Maybe something like "if & is the last character "chopped off" by inserting ellipses then it incorrectly treats the following, preserved character as having been marked as a shortcut by the removed & preceding it".

                              I don't know whether this helps! But maybe there is indeed some special treatment of & going on here, only showing up under special circumstances?

                              C Offline
                              C Offline
                              ChrisW67
                              wrote on last edited by
                              #17

                              @JonB said in QComboBox bug in Qt5.15:

                              I too have Qt 15.5.3. I am under Ubuntu 22.04, with GNOME desktop. I think you are different because of the "X" in the top left of your combo, I do not get this, I think you are using a different window manager?

                              @JonB
                              It is KDE (so kwin). It's a pain in the backside to capture the open combo box there also. With a standalone combo box the window manager will have input into size constraints and the constraint it imposes here causes text to elided. In the OP's screen shot the size of the combo box is constrained to some degree by the table cell the delegate is opening it over, and by the options set, and text is elided. This is exactly what was shown in the OP's opening screen shot. The ampersand was completed elided and there was no errant underline.

                              The oddity you noticed with the ampersand I will try to reproduce when I am back at my Linux box.

                              C 1 Reply Last reply
                              1
                              • C ChrisW67

                                @JonB said in QComboBox bug in Qt5.15:

                                I too have Qt 15.5.3. I am under Ubuntu 22.04, with GNOME desktop. I think you are different because of the "X" in the top left of your combo, I do not get this, I think you are using a different window manager?

                                @JonB
                                It is KDE (so kwin). It's a pain in the backside to capture the open combo box there also. With a standalone combo box the window manager will have input into size constraints and the constraint it imposes here causes text to elided. In the OP's screen shot the size of the combo box is constrained to some degree by the table cell the delegate is opening it over, and by the options set, and text is elided. This is exactly what was shown in the OP's opening screen shot. The ampersand was completed elided and there was no errant underline.

                                The oddity you noticed with the ampersand I will try to reproduce when I am back at my Linux box.

                                C Offline
                                C Offline
                                ChrisW67
                                wrote on last edited by
                                #18

                                @JonB Whatever that behaviour is, it is sensitive to the environment. This is what your code does by default in my KDE environment:

                                4b979957-5722-47c8-b2ff-ef2ea88ddebf-image.png

                                If I subsequently narrow the window as much as the window decorations allow:
                                4cc3555d-e33e-4f8e-9f89-77b98d123932-image.png
                                Note, no spurious underscore. I fiddled a bit but could not reproduce it (Fusion or Windows style). Qt 6.4.2 did something different again

                                JonBJ 1 Reply Last reply
                                0
                                • C ChrisW67

                                  @JonB Whatever that behaviour is, it is sensitive to the environment. This is what your code does by default in my KDE environment:

                                  4b979957-5722-47c8-b2ff-ef2ea88ddebf-image.png

                                  If I subsequently narrow the window as much as the window decorations allow:
                                  4cc3555d-e33e-4f8e-9f89-77b98d123932-image.png
                                  Note, no spurious underscore. I fiddled a bit but could not reproduce it (Fusion or Windows style). Qt 6.4.2 did something different again

                                  JonBJ Offline
                                  JonBJ Offline
                                  JonB
                                  wrote on last edited by
                                  #19

                                  @ChrisW67
                                  For one, thing you are using both a different font and a different window-look. Understandably. I can only suggest if you want to try to replicate mine, you find a string such that Qt puts ellipsis into it to shorten and the last character of what was removed is the & character. So the eliding produces abc... def from what used to be something like abc123 & def.

                                  Meanwhile I might be more confident about producing a screen shot from a dropped-down combo so will have another go at producing that for pasting soon :)

                                  1 Reply Last reply
                                  1
                                  • K Offline
                                    K Offline
                                    kkyzivat
                                    wrote on last edited by
                                    #20

                                    For what it's worth, I am also seeing this strange behavior, and it seems to not relate to text eliding in the contained QAbstractItemView, either that, or the QAbstractItemView is ignoring my setTextElideMode(Qt::ElideNone) call.

                                    The project in question I am working with is apitrace, and I can reproduce this behavior in the app build, but not in just a standalone example showing just the dialog that contains this combo box.

                                    The & is replaced with ... even when I call combo->view()->setTextElideMode(Qt::ElideNone).

                                    This occurs for me in Qt 5.15.14, and Qt 6.5.1.

                                    To see my attempts to reproduce the issue outside of qapitrace, and to explain how to reproduce this in qapitrace, clone this small repo and follow the README.md:
                                    https://github.com/keithel/qapitrace-combobox-elide-bug

                                    Christian EhrlicherC K 2 Replies Last reply
                                    0
                                    • K kkyzivat

                                      For what it's worth, I am also seeing this strange behavior, and it seems to not relate to text eliding in the contained QAbstractItemView, either that, or the QAbstractItemView is ignoring my setTextElideMode(Qt::ElideNone) call.

                                      The project in question I am working with is apitrace, and I can reproduce this behavior in the app build, but not in just a standalone example showing just the dialog that contains this combo box.

                                      The & is replaced with ... even when I call combo->view()->setTextElideMode(Qt::ElideNone).

                                      This occurs for me in Qt 5.15.14, and Qt 6.5.1.

                                      To see my attempts to reproduce the issue outside of qapitrace, and to explain how to reproduce this in qapitrace, clone this small repo and follow the README.md:
                                      https://github.com/keithel/qapitrace-combobox-elide-bug

                                      Christian EhrlicherC Offline
                                      Christian EhrlicherC Offline
                                      Christian Ehrlicher
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #21

                                      @kkyzivat if you have a simple reproducer then please create a bug report and post the link here.

                                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                                      Visit the Qt Academy at https://academy.qt.io/catalog

                                      K 1 Reply Last reply
                                      0
                                      • Christian EhrlicherC Christian Ehrlicher

                                        @kkyzivat if you have a simple reproducer then please create a bug report and post the link here.

                                        K Offline
                                        K Offline
                                        kkyzivat
                                        wrote on last edited by kkyzivat
                                        #22

                                        @Christian-Ehrlicher
                                        Oh, of course. I just haven't gotten there yet. Simple reproducer doesn't seem to be reproducing the issue (though I am using a different Qt build, one part of Pypi Qt for Python build). I should just rewrite my reproducer in C++ to test apples to apples.

                                        I find writing these simple reproducers in Python is often quicker.

                                        Christian EhrlicherC 1 Reply Last reply
                                        0
                                        • K kkyzivat

                                          @Christian-Ehrlicher
                                          Oh, of course. I just haven't gotten there yet. Simple reproducer doesn't seem to be reproducing the issue (though I am using a different Qt build, one part of Pypi Qt for Python build). I should just rewrite my reproducer in C++ to test apples to apples.

                                          I find writing these simple reproducers in Python is often quicker.

                                          Christian EhrlicherC Offline
                                          Christian EhrlicherC Offline
                                          Christian Ehrlicher
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #23

                                          @kkyzivat said in QComboBox bug in Qt5.15:

                                          I find writing these simple reproducers in Python is often quicker

                                          Maybe, but it makes debugging for the dev harder as he has to create a c++ test case in most cases first. So providing a small c++ reproducer will likely result in an earlier bugfix.

                                          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                                          Visit the Qt Academy at https://academy.qt.io/catalog

                                          K 1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved