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 drop-down list appears separately(QMDIArea and QMDISubwindow)
Forum Updated to NodeBB v4.3 + New Features

qcombobox drop-down list appears separately(QMDIArea and QMDISubwindow)

Scheduled Pinned Locked Moved Unsolved General and Desktop
qcomboboxqt5.14.2qmdisubwindowqmdiarea
16 Posts 3 Posters 2.5k Views 3 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.
  • mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi
    Is that a plain QComboxBox ?
    I mean, no subclassing or stylesheet applied to it ?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sayan275
      wrote on last edited by
      #3

      No it's a simple qcombobox
      e30cc636-2e7a-43e4-b57e-b23e9f4de3f6-image.png

      1 Reply Last reply
      0
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #4

        Hi
        And no stylesheets ?
        What platform and Qt version ?
        I never saw this before.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sayan275
          wrote on last edited by
          #5

          No stylesheet applied on the qcombobox.
          Windows 10 and Qt 5.14.2

          mrjjM 1 Reply Last reply
          0
          • S sayan275

            No stylesheet applied on the qcombobox.
            Windows 10 and Qt 5.14.2

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #6

            @sayan275
            Ok. same as me.
            Does this happen if you create a clean GUI project and inset a Combobox?

            S 1 Reply Last reply
            1
            • mrjjM mrjj

              @sayan275
              Ok. same as me.
              Does this happen if you create a clean GUI project and inset a Combobox?

              S Offline
              S Offline
              sayan275
              wrote on last edited by sayan275
              #7

              @mrjj no ...normally it's ok.
              Actually, this qcombobox is an element in an qwidget(say, output NavControls.dll)
              This dll, I use in a viewerWidget, which is added in an qmdiArea.
              Other qcombobox in the same NavControls used in other viewer works fine.

              For what reasons this issue likely occurs...like you asked for stylesheet...so that I can look in those areas. I also faced this issue first time.

              mrjjM 1 Reply Last reply
              0
              • S sayan275

                @mrjj no ...normally it's ok.
                Actually, this qcombobox is an element in an qwidget(say, output NavControls.dll)
                This dll, I use in a viewerWidget, which is added in an qmdiArea.
                Other qcombobox in the same NavControls used in other viewer works fine.

                For what reasons this issue likely occurs...like you asked for stylesheet...so that I can look in those areas. I also faced this issue first time.

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #8

                @sayan275
                So its just one Combobox that does it ?

                The other viewers are also added to qmdiArea ?

                S 1 Reply Last reply
                0
                • mrjjM mrjj

                  @sayan275
                  So its just one Combobox that does it ?

                  The other viewers are also added to qmdiArea ?

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

                  @mrjj 2 combobox in this viewer behaves like this
                  qcombobox in other viewer is working perfectly.

                  mrjjM Pl45m4P 2 Replies Last reply
                  0
                  • S sayan275

                    @mrjj 2 combobox in this viewer behaves like this
                    qcombobox in other viewer is working perfectly.

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    @sayan275
                    Hi
                    So it would be fair to assume it has something to do with this viewer.
                    You have to try to reduce it until the combo works again.

                    I have no suggestion as to the cause of this as the other combo boxes works and
                    they all live in the same DLL and also put in MDIAreas.

                    Do you have multiple monitors on ?

                    S 1 Reply Last reply
                    1
                    • S sayan275

                      @mrjj 2 combobox in this viewer behaves like this
                      qcombobox in other viewer is working perfectly.

                      Pl45m4P Online
                      Pl45m4P Online
                      Pl45m4
                      wrote on last edited by Pl45m4
                      #11

                      @sayan275 sayan275 said in qcombobox drop-down list appears separately:

                      2 combobox in this viewer behaves like this

                      Are these two the "Pulse" comboBox and the "None" comboBox on the right?

                      What happens, if you move them somewhere else, e.g. to the middle of same widget where they dont overlap the MdiArea. Same behavior then?!

                      I have no fix but I think, I know why / what is going on.
                      The issue could be the coordinate systems / widget positions on main window or widget (your QMdiArea).
                      Do you move something by using code?

                      Does your widget have a parent?


                      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                      ~E. W. Dijkstra

                      S 1 Reply Last reply
                      1
                      • mrjjM mrjj

                        @sayan275
                        Hi
                        So it would be fair to assume it has something to do with this viewer.
                        You have to try to reduce it until the combo works again.

                        I have no suggestion as to the cause of this as the other combo boxes works and
                        they all live in the same DLL and also put in MDIAreas.

                        Do you have multiple monitors on ?

                        S Offline
                        S Offline
                        sayan275
                        wrote on last edited by
                        #12

                        @mrjj no multiple monitors...my laptop is set to PC screen only

                        1 Reply Last reply
                        0
                        • Pl45m4P Pl45m4

                          @sayan275 sayan275 said in qcombobox drop-down list appears separately:

                          2 combobox in this viewer behaves like this

                          Are these two the "Pulse" comboBox and the "None" comboBox on the right?

                          What happens, if you move them somewhere else, e.g. to the middle of same widget where they dont overlap the MdiArea. Same behavior then?!

                          I have no fix but I think, I know why / what is going on.
                          The issue could be the coordinate systems / widget positions on main window or widget (your QMdiArea).
                          Do you move something by using code?

                          Does your widget have a parent?

                          S Offline
                          S Offline
                          sayan275
                          wrote on last edited by sayan275
                          #13

                          @Pl45m4

                          No code for moving
                          Actually it has a parent ..a form class.
                          https://forum.qt.io/topic/94367/qt-resource-images-not-showing-while-executing
                          I have used this lib as in the link.
                          I am also trying look in mdiArea ,as the viewers are qmdisubwindow

                          Pl45m4P 1 Reply Last reply
                          0
                          • S sayan275

                            @Pl45m4

                            No code for moving
                            Actually it has a parent ..a form class.
                            https://forum.qt.io/topic/94367/qt-resource-images-not-showing-while-executing
                            I have used this lib as in the link.
                            I am also trying look in mdiArea ,as the viewers are qmdisubwindow

                            Pl45m4P Online
                            Pl45m4P Online
                            Pl45m4
                            wrote on last edited by
                            #14

                            @sayan275

                            Same behavior when you place the same comboBoxes somewhere else on your widget? If there is no issue, then it must be a painter or coordinate mapping issue. Could be a bug.


                            If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                            ~E. W. Dijkstra

                            S 1 Reply Last reply
                            3
                            • Pl45m4P Pl45m4

                              @sayan275

                              Same behavior when you place the same comboBoxes somewhere else on your widget? If there is no issue, then it must be a painter or coordinate mapping issue. Could be a bug.

                              S Offline
                              S Offline
                              sayan275
                              wrote on last edited by
                              #15

                              @Pl45m4 I'll try this...changing it's position

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                sayan275
                                wrote on last edited by sayan275
                                #16
                                This post is deleted!
                                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