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. Context Menu not showing entirely
QtWS25 Last Chance

Context Menu not showing entirely

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 1.1k 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.
  • D Offline
    D Offline
    Dan Zebbra
    wrote on last edited by aha_1980
    #1

    I'm using QT 5.3.2 and in my whole app wherever I have a QLineEdit, rendered based on a UI file, the Context Menu shown on right click on an QLineEdit is not shown entirely.
    Can someone help me with this?

    Thanksalt text

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Can you provide a minimal sample code reproducing that behaviour ?

      Did you check with a more recent version of Qt whether it still happens ?

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

      1 Reply Last reply
      2
      • D Offline
        D Offline
        Dan Zebbra
        wrote on last edited by
        #3

        Hi SGaist,

        Thank you for your reply!
        Before going with providing that minimal sample code (which is not so easy) and changing the QT Version (which is also not so easy because we should perform a lot of testing as we have a lot of screens) can you suggest me some other approach so I could test different possibilities as the source of the bug?

        Thanks

        mrjjM 1 Reply Last reply
        0
        • D Dan Zebbra

          Hi SGaist,

          Thank you for your reply!
          Before going with providing that minimal sample code (which is not so easy) and changing the QT Version (which is also not so easy because we should perform a lot of testing as we have a lot of screens) can you suggest me some other approach so I could test different possibilities as the source of the bug?

          Thanks

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

          @Dan-Zebbra
          Hi
          Are you using stylesheets ?
          If yes, could you disable it and see if that makes any difference ?

          1 Reply Last reply
          3
          • D Offline
            D Offline
            Dan Zebbra
            wrote on last edited by
            #5

            Yes, I'm using a lot of styleSheets but disabling them means giving up to my themes.

            aha_1980A mrjjM 2 Replies Last reply
            0
            • D Dan Zebbra

              Yes, I'm using a lot of styleSheets but disabling them means giving up to my themes.

              aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on last edited by aha_1980
              #6

              @Dan-Zebbra

              if you really want to solve your problem, you should at least try the suggestion of @SGaist and @mrjj. otherwise its hard for us to help you.

              I know that its not easy to deploy an app with a new Qt version, but it is easy to build and test against another version.

              regards

              Qt has to stay free or it will die.

              1 Reply Last reply
              2
              • D Dan Zebbra

                Yes, I'm using a lot of styleSheets but disabling them means giving up to my themes.

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

                @Dan-Zebbra
                If was not meant as a permanent thing.
                Just to make sure its
                not due to styling.
                If it is, we must just find out why it cuts QMenu.
                if not, we must continue investigate why it happens.
                I have not seen that one before :)

                1 Reply Last reply
                1
                • D Offline
                  D Offline
                  Dan Zebbra
                  wrote on last edited by Dan Zebbra
                  #8

                  I've solved it. I've added QLineEdit:ContextMenu {height: 200px;} in the stylesheet of the QLineEdit and it worked.
                  That's my entire styleSheet for th e QLineEdit element. Don't know why without the ContextMenu part it would cut off the Context Menu...

                  QLineEdit {background-color: #2b2b37; color: #FFFFFF; padding-left: 5px; font-family: 'Helvetica Neue'; height: 32px;} QLineEdit:ContextMenu {height: 200px;}

                  Thanks guys!

                  1 Reply Last reply
                  1

                  • Login

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