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. QPushButton with "-" looks different
Forum Updated to NodeBB v4.3 + New Features

QPushButton with "-" looks different

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 8 Posters 3.3k 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.
  • VRoninV Offline
    VRoninV Offline
    VRonin
    wrote on last edited by
    #4

    Strange indeed.

    Workaround:

    QPushButton *del = new QPushButton(QString(QChar(static_cast<ushort>(2012))), this); 
    

    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
    ~Napoleon Bonaparte

    On a crusade to banish setIndexWidget() from the holy land of Qt

    M 1 Reply Last reply
    1
    • ModelTechM Offline
      ModelTechM Offline
      ModelTech
      wrote on last edited by ModelTech
      #5

      I just tried your original code on

      • Ubuntu 16.04 with Qt 5.7.0 (Qt Creator 4.0.3 built with gcc 4.9.1, 64bit) using gcc 5.4.0
      • MacOS 10.11.6 with Qt 5.7.0 (Qt Creator 4.0.3 built with Clang 7.0, 64bit) using XCode 7.3.1

      In both these cases, the buttons look equally normal. Are you using the latest XCode?

      M 1 Reply Last reply
      1
      • ModelTechM ModelTech

        I just tried your original code on

        • Ubuntu 16.04 with Qt 5.7.0 (Qt Creator 4.0.3 built with gcc 4.9.1, 64bit) using gcc 5.4.0
        • MacOS 10.11.6 with Qt 5.7.0 (Qt Creator 4.0.3 built with Clang 7.0, 64bit) using XCode 7.3.1

        In both these cases, the buttons look equally normal. Are you using the latest XCode?

        M Offline
        M Offline
        Maptuzu
        wrote on last edited by
        #6

        @ModelTech said in QPushButton with "-" looks different:

        I just tried your original code on

        • Ubuntu 16.04 with Qt 5.7.0 (Qt Creator 4.0.3 built with gcc 4.9.1, 64bit) using gcc 5.4.0
        • MacOS 10.11.6 with Qt 5.7.0 (Qt Creator 4.0.3 built with Clang 7.0, 64bit) using XCode 7.3.1

        In both these cases, the buttons look equally normal. Are you using the latest XCode?

        XCode 7.3.1 and Qt Creator 4.1.0 built with Clang 7.0, 64bit

        1 Reply Last reply
        0
        • VRoninV VRonin

          Strange indeed.

          Workaround:

          QPushButton *del = new QPushButton(QString(QChar(static_cast<ushort>(2012))), this); 
          
          M Offline
          M Offline
          Maptuzu
          wrote on last edited by
          #7

          @VRonin
          I get the following error:
          OpenType support missing for script 66

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Maptuzu
            wrote on last edited by
            #8

            After the reinstall from macOS (Sierra), Qt (5.7), QtCreator (4.1.0) and XCode (8), the problem still occurs

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kegon
              wrote on last edited by
              #9

              I already reported this bug, please see https://bugreports.qt.io/browse/QTBUG-53679

              M 1 Reply Last reply
              0
              • K kegon

                I already reported this bug, please see https://bugreports.qt.io/browse/QTBUG-53679

                M Offline
                M Offline
                Maptuzu
                wrote on last edited by
                #10

                @kegon Thanks for the info. I hope they will fix it, it is open since may...

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  Maptuzu
                  wrote on last edited by
                  #11

                  Qt 5.9 RC, macOS (10.12.5), Qt Creator (4.3.0) and XCode (8.3.2) and the problem still occurs.

                  m.sueM 1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mpergand
                    wrote on last edited by mpergand
                    #12

                    I'm on MacOS 10.9 and this bug doesn't occur.
                    Maybe the following could solve this issue:

                    del->setMaximumHeight(32);
                    

                    or something like that.

                    1 Reply Last reply
                    0
                    • M Maptuzu

                      Qt 5.9 RC, macOS (10.12.5), Qt Creator (4.3.0) and XCode (8.3.2) and the problem still occurs.

                      m.sueM Offline
                      m.sueM Offline
                      m.sue
                      wrote on last edited by
                      #13

                      @Maptuzu

                      Hi,
                      You should comment on this in the bug report. Any comment here will very probably not reach the right people.
                      -Michael.

                      1 Reply Last reply
                      1
                      • EddyE Offline
                        EddyE Offline
                        Eddy
                        wrote on last edited by
                        #14

                        To add to m.sue :
                        if you consider it important to be fixed upvote in the bug tracker This will attract more attention to it.

                        I've voted for it myself.

                        Eddy

                        Qt Certified Specialist
                        www.edalsolutions.be

                        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