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. Button clicked not working on Big Sur.
QtWS25 Last Chance

Button clicked not working on Big Sur.

Scheduled Pinned Locked Moved Unsolved General and Desktop
qpushbuttonmacosmac os 10.16macos11connect problem
12 Posts 5 Posters 2.8k 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.
  • F Offline
    F Offline
    Flock Andrew
    wrote on last edited by
    #1

    If you set the background of all pushbuttons of a window they all no longer trigger connected clicked events but if one of them doesn't have a background set they all work. This behaviour only seems to happen when using Big Sur. Is this an issue on my end or do I need to submit a bug report?

    I have a minimal example that shows this behaviour if needed.

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

      Hi
      Im not sure Qt is supported on Big Sur yet.
      https://bugreports.qt.io/browse/QTBUG-85546

      F 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        Im not sure Qt is supported on Big Sur yet.
        https://bugreports.qt.io/browse/QTBUG-85546

        F Offline
        F Offline
        Flock Andrew
        wrote on last edited by
        #3

        @mrjj yes but if a user has a program using qt5.15 and runs it on big sur because it might not get updated to qt5.16 in a not that long amount of time they will have this issue and it should be addressed.

        1 Reply Last reply
        0
        • W Offline
          W Offline
          wesblake
          wrote on last edited by
          #4

          I have the same issue. About half of all buttons in our app do not work but only under Big Sur. I agree Qt needs to get on this. We are close to Apple's release and they are pushing hard on the whole Silicon + universal apps thing. We have Silicon running Big Sur dev kits already and the issue is obviously within Qt.

          1 Reply Last reply
          0
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi
            I think they are "on it"
            https://bugreports.qt.io/browse/QTBUG-85279
            https://bugreports.qt.io/browse/QTBUG-85546

            W 1 Reply Last reply
            1
            • mrjjM mrjj

              Hi
              I think they are "on it"
              https://bugreports.qt.io/browse/QTBUG-85279
              https://bugreports.qt.io/browse/QTBUG-85546

              W Offline
              W Offline
              wesblake
              wrote on last edited by wesblake
              #6

              @mrjj said in Button clicked not working on Big Sur.:

              Hi
              I think they are "on it"
              https://bugreports.qt.io/browse/QTBUG-85279
              https://bugreports.qt.io/browse/QTBUG-85546

              Thanks, that's great! That's just the ARM part though. 5.15 needs to be fixed for the interim because Qt also said (in their mailing list) that they expected things to work as is (since Apple has the new layer that emulates existing Intel apps). Also, I was mistaken. This is a 5.15 issue, happens on Catalina too, so it's not just Big Sur (the button issue).

              mrjjM 1 Reply Last reply
              0
              • W wesblake

                @mrjj said in Button clicked not working on Big Sur.:

                Hi
                I think they are "on it"
                https://bugreports.qt.io/browse/QTBUG-85279
                https://bugreports.qt.io/browse/QTBUG-85546

                Thanks, that's great! That's just the ARM part though. 5.15 needs to be fixed for the interim because Qt also said (in their mailing list) that they expected things to work as is (since Apple has the new layer that emulates existing Intel apps). Also, I was mistaken. This is a 5.15 issue, happens on Catalina too, so it's not just Big Sur (the button issue).

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

                @wesblake
                Hi
                Same thing - setting background on buttons stops them from emitting clicked() ?

                W Z 2 Replies Last reply
                0
                • mrjjM mrjj

                  @wesblake
                  Hi
                  Same thing - setting background on buttons stops them from emitting clicked() ?

                  W Offline
                  W Offline
                  wesblake
                  wrote on last edited by
                  #8

                  @mrjj I can try to put together a test app but our app is way too large to figure that out from it. We have a ton of buttons. The app is themed so we use qss for everything (user picks their theme, we apply a qss set). What I can say is that not all buttons no longer send the click (maybe half), buttons that still work also have qss including a background applied, and that this app worked fine through multiple versions of Mac OS + Qt including 5.14.2. As soon as it's built with 5.15, this happens on both Catalina and Big Sur.

                  1 Reply Last reply
                  1
                  • mrjjM mrjj

                    @wesblake
                    Hi
                    Same thing - setting background on buttons stops them from emitting clicked() ?

                    Z Offline
                    Z Offline
                    Zygote64
                    wrote on last edited by Zygote64
                    #9

                    @mrjj i met the same problem, how can i solve it

                    PS:
                    another question: when run qt app from qt creator, showing the second window (such as tooltip, etc) will lead to program hung on Big Sur Beta 1/2/3/4.

                    mrjjM 1 Reply Last reply
                    0
                    • Z Zygote64

                      @mrjj i met the same problem, how can i solve it

                      PS:
                      another question: when run qt app from qt creator, showing the second window (such as tooltip, etc) will lead to program hung on Big Sur Beta 1/2/3/4.

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

                      @Zygote64
                      I dont think there is a fix currently.

                      1 Reply Last reply
                      0
                      • F Offline
                        F Offline
                        Flock Andrew
                        wrote on last edited by
                        #11

                        Qt 5.15.0 , has this issue but apps launch
                        Qt 5.14.2/5.13.2 test app doesn't even display anything I haven't looked into why

                        Currently my "solution" is to use Qt 5.12.9 since it displays and doesn't seem to have this issue and unlike 5.12.5 doesn't crash on mouse move event but I haven't investigated that behaviour much.

                        #include "mainwindow.h"
                        #include "ui_mainwindow.h"
                        #include <QDebug>
                        #include <QKeyEvent>
                        
                        MainWindow::MainWindow(QWidget *parent)
                        	: QMainWindow(parent)
                        	, ui(new Ui::MainWindow)
                        {
                        	ui->setupUi(this);
                        	ui->pushButton->setStyleSheet("border-image: url(:/cc.xlarge.png) 0 0 0 0 stretch stretch;");
                        	ui->pushButton_2->setStyleSheet("background: rgb(255,0,0);");
                        	connect(ui->pushButton,&QPushButton::clicked,this,[](){
                        		qDebug()<<"clacked";
                        	});
                        	connect(ui->pushButton_2,&QPushButton::clicked,this,[](){
                        		qDebug()<<"clacked2";
                        	});
                        
                        }
                        
                        MainWindow::~MainWindow()
                        {
                        	delete ui;
                        }
                        
                        void MainWindow::keyPressEvent(QKeyEvent *event){
                        	if(event->key() == Qt::Key_Shift){
                        		ui->pushButton_2->setStyleSheet("");
                        	}
                        }
                        

                        is my minimal test app main window code all it needs is a ui form with 2 pushbuttons with the given tokens names and a image since I was testing if that was the cause

                        1 Reply Last reply
                        0
                        • Tor ArneT Offline
                          Tor ArneT Offline
                          Tor Arne
                          wrote on last edited by
                          #12

                          Please report this as a bug in JIRA, with a minimal test case, so that we can check whether this is a 5.15 regression, a Big Sur issue, or something also present in Catalina.

                          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