Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-83906

button->label settext NOT working on MacOS (works on Linux, Windows)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.14.2
    • None
    • MacOS, Catalina
      OS: macOS 10.15 [darwin version 19.4.0]
      Qt Creator 4.12.0
      Based on Qt 5.14.2 (Clang 10.0 (Apple), 64 bit)
    • macOS

    Description

      Qt 5.14.2+Qt 4.12.0
      Very basic code using QtCreator:

      1. add QPushButton, QLabel using creator.
      2. right click on QPushButton->go to slot — add code: ui->label->setText("whatever");
      3. build->run, button does NOT change the label text

      Few comments:

      • The same procedure with the same version Qt+QtCreator produces a working app on Linux, and on Windows.ie. text changes.
      • Trying to change the text on the QButton works, also on MacOS.
      • Tried adding private slot manually, connect in the MainWindow constructor, still does NOT work on MacOS (works on Linux, Windows).
      • Tried right click on MainWindow->add slot-> connect via signal/slot editor in QtCreator and code in mainwindow.cpp. Does not work on MacOS, but works on Linux, Windows.

      I have no idea where the problem lies.

      Will upload the directory where the code resides.

      I do think that Qt is a great platform, and is unique in providing a common IDE for all, with support for Android too. I hope the great work continues to flourish.

      First time reporting a Qt bug - sorry if I did not follow the proper mannerisms.
      Ken Aoki.

      Attachments

        1. main.cpp
          0.2 kB
        2. mainwindow.cpp
          0.3 kB
        3. mainwindow.h
          0.4 kB
        4. mainwindow.ui
          1 kB
        5. TestGUI4.pro
          1.0 kB
        6. TestGUI4.pro.user
          22 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            srutledg Shawn Rutledge
            kendon ken aoki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes