Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved elide Punkte sind zu hoch platziert

    German
    2
    14
    701
    Loading More Posts
    • 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.
    • G
      Galilio last edited by

      Hallo zusammen,

      bei einem Checkbox oder Button ist die elide Property in einem Item Property wie folgt definiert:

          contentItem: Item {
              id: contentItem
              Text {
                  id: contentItemText
                   .....
                  elide: Text.ElideRight
              }
      

      allerdings wenn der Text zu lang ist, werden dann drei Punkte dargestellt.
      Diese Punkte müssen normalerweise auf der Basislinie platziert sein. Sie sind aber einige Pixel zu hoch platziert.

      Mir ist die Ursache nicht bekannt. Wisst ihr wie kann ich dann trotzdem die Punkte auf die Basislinie platzieren?

      Danke

      1 Reply Last reply Reply Quote 0
      • G
        Galilio last edited by

        @J-Hilk

        Sorry für die Störung: weiss du vielleicht was der Grund oder wie kannn ich die Punkte auf die Basislinie platzieren?

        Danke

        J.Hilk 1 Reply Last reply Reply Quote 0
        • J.Hilk
          J.Hilk Moderators @Galilio last edited by

          Hi @Galilio

          leider nein, zumal ich mir auch nicht richtig vorstellen kann, wie das genau aussieht!

          Hast du ein Screenshot zur Hand und eventuell nen minimales Beispiel? Dann würde ich das mal versuchen nachzustellen an meinen PC's und Qt Versionen :)

          Der Grund warum ich nach nem mce frage ist, weil ich festgestellt habe, das viele Fehler oder Fehlverhalten verschwinden wenn man es auf kleinerer Skalierung versucht herunterzubrechen

          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

          Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          G 1 Reply Last reply Reply Quote 0
          • G
            Galilio @J.Hilk last edited by

            @J-Hilk

            2020-06-19_09h02_56.png

            In der Screenshots ist zu sehen, dass die Punkte um einen paar Pixel versetzt sind.

            Codemässig sieht eigentlich wie folgende aus:

            Button {
            
            	id: rootId
            	width: 50
            	height: 50
            	
            	background:Rectangle {
            		width:50
            		height: 50
            		...
            	}
            	contentItem: Item {
            		....
            	     Text {
            		  text: "sdfkjshdkfjhskdjfhskdjfhver"
            		  color: "black"
            		  elide: Text.ElideRight
            	        }
                   }
            }
            
            J.Hilk 1 Reply Last reply Reply Quote 0
            • J.Hilk
              J.Hilk Moderators @Galilio last edited by

              @Galilio bei mir sieht es ganz normal aus

              e29c3322-b547-4146-a60b-ea734552dde8-image.png

              qt 5.12.6 & MacOS

              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

              Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              1 Reply Last reply Reply Quote 0
              • G
                Galilio last edited by

                komisch
                Ich habe die Qt Creator Version 4.11.1

                J.Hilk 1 Reply Last reply Reply Quote 0
                • J.Hilk
                  J.Hilk Moderators @Galilio last edited by

                  @Galilio qt creator version != Qt version, die version in deinem Kit ist relevant

                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

                  Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


                  Q: What's that?
                  A: It's blue light.
                  Q: What does it do?
                  A: It turns blue.

                  G 1 Reply Last reply Reply Quote 0
                  • G
                    Galilio @J.Hilk last edited by

                    @J-Hilk
                    5.9.1 Das ist die Version was wir haben.

                    J.Hilk 1 Reply Last reply Reply Quote 0
                    • J.Hilk
                      J.Hilk Moderators @Galilio last edited by

                      @Galilio wenn du kannst, würde ich mal eine andere Version versuchen, zumindest die letzte 5.9 version (ist ja LTS)

                      ansonsten würde ich sagen
                      https://bugreports.qt.io

                      sry :(

                      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

                      Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


                      Q: What's that?
                      A: It's blue light.
                      Q: What does it do?
                      A: It turns blue.

                      G 1 Reply Last reply Reply Quote 0
                      • G
                        Galilio @J.Hilk last edited by

                        @J-Hilk

                        Hallo @J-Hilk

                        Ich habe auch einen Dummybeispiel für die gleiche Qt Version erstellt.
                        Ich sehe das geschilderte Problem auch nicht. Die Punkten sind genau in der richtige Stelle, wie es zu erwarten ist.

                        In meine Applikation ist aber leider nicht so. Die Punkten sind nicht auf der Basislinie platziert.

                        J.Hilk 1 Reply Last reply Reply Quote 0
                        • J.Hilk
                          J.Hilk Moderators @Galilio last edited by

                          Hi @Galilio

                          na, da sind wir ja schonmal einen Schritt weiter!

                          Jetzt kannst du eigentlich nur hin gehen und, entweder dein dummy Beispiel langsam erweitern bis es dem original code entspricht, oder den original code langsam reduzieren. Auf jedenfalls solltest du so der Sache auf der Spur kommen können!

                          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

                          Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


                          Q: What's that?
                          A: It's blue light.
                          Q: What does it do?
                          A: It turns blue.

                          G 1 Reply Last reply Reply Quote 0
                          • G
                            Galilio @J.Hilk last edited by

                            @J-Hilk

                            danke
                            Problem ist localisiert.

                            J.Hilk 1 Reply Last reply Reply Quote 1
                            • J.Hilk
                              J.Hilk Moderators @Galilio last edited by

                              @Galilio sehr gut, gratuliere!
                              Würdest du es teilen ? als jemand anderes auch auf dieses Problem stößt ?

                              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

                              Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


                              Q: What's that?
                              A: It's blue light.
                              Q: What does it do?
                              A: It turns blue.

                              G 1 Reply Last reply Reply Quote 0
                              • G
                                Galilio @J.Hilk last edited by

                                @J-Hilk
                                Problem war, dass wir eine eigene Font verwenden und sobald die property elide beim Text auf ElideRight gesetzt ist und der Text lang ist, werden die drei Punkte nicht auf die Basislinie dargestellt sondern um eine Paar Pixel nach Oben verschoben.

                                1 Reply Last reply Reply Quote 1
                                • First post
                                  Last post