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)

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.3k Views
  • 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 Offline
    S Offline
    sayan275
    wrote on 14 Oct 2020, 13:32 last edited by sayan275
    #1

    Hello,

    I am facing a strange issue with qcombobox. The drop-down item's list is appearing separately elsewhere.

    Untitled.png

    Any help...what is causing this issue?
    Qt 5.14.2

    Regards,
    Sayan

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 14 Oct 2020, 13:37 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 14 Oct 2020, 13:47 last edited by
        #3

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

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 14 Oct 2020, 13:49 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 14 Oct 2020, 14:07 last edited by
            #5

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

            M 1 Reply Last reply 14 Oct 2020, 14:19
            0
            • S sayan275
              14 Oct 2020, 14:07

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

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 14 Oct 2020, 14:19 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 15 Oct 2020, 01:53
              1
              • M mrjj
                14 Oct 2020, 14:19

                @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 15 Oct 2020, 01:53 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.

                M 1 Reply Last reply 15 Oct 2020, 06:44
                0
                • S sayan275
                  15 Oct 2020, 01:53

                  @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.

                  M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 15 Oct 2020, 06:44 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 15 Oct 2020, 06:55
                  0
                  • M mrjj
                    15 Oct 2020, 06:44

                    @sayan275
                    So its just one Combobox that does it ?

                    The other viewers are also added to qmdiArea ?

                    S Offline
                    S Offline
                    sayan275
                    wrote on 15 Oct 2020, 06:55 last edited by
                    #9

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

                    M P 2 Replies Last reply 15 Oct 2020, 07:09
                    0
                    • S sayan275
                      15 Oct 2020, 06:55

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

                      M Offline
                      M Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on 15 Oct 2020, 07:09 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 15 Oct 2020, 12:44
                      1
                      • S sayan275
                        15 Oct 2020, 06:55

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

                        P Online
                        P Online
                        Pl45m4
                        wrote on 15 Oct 2020, 11:24 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 15 Oct 2020, 12:48
                        1
                        • M mrjj
                          15 Oct 2020, 07:09

                          @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 15 Oct 2020, 12:44 last edited by
                          #12

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

                          1 Reply Last reply
                          0
                          • P Pl45m4
                            15 Oct 2020, 11:24

                            @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 15 Oct 2020, 12:48 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

                            P 1 Reply Last reply 15 Oct 2020, 12:52
                            0
                            • S sayan275
                              15 Oct 2020, 12:48

                              @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

                              P Online
                              P Online
                              Pl45m4
                              wrote on 15 Oct 2020, 12:52 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 15 Oct 2020, 12:54
                              3
                              • P Pl45m4
                                15 Oct 2020, 12:52

                                @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 15 Oct 2020, 12:54 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 17 Oct 2020, 03:43 last edited by sayan275
                                  #16
                                  This post is deleted!
                                  1 Reply Last reply
                                  0

                                  4/16

                                  14 Oct 2020, 13:49

                                  topic:navigator.unread, 12
                                  • Login

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