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.

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 31 Jul 2020, 01:32 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
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 31 Jul 2020, 14:37 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 1 Aug 2020, 00:37
      0
      • M mrjj
        31 Jul 2020, 14:37

        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 1 Aug 2020, 00:37 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 3 Aug 2020, 20:10 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
          • M Offline
            M Offline
            mrjj
            Lifetime Qt Champion
            wrote on 3 Aug 2020, 20:26 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 3 Aug 2020, 20:37
            1
            • M mrjj
              3 Aug 2020, 20:26

              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 3 Aug 2020, 20:37 last edited by wesblake 8 Mar 2020, 20:39
              #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).

              M 1 Reply Last reply 3 Aug 2020, 20:53
              0
              • W wesblake
                3 Aug 2020, 20:37

                @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).

                M Offline
                M Offline
                mrjj
                Lifetime Qt Champion
                wrote on 3 Aug 2020, 20:53 last edited by
                #7

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

                W Z 2 Replies Last reply 4 Aug 2020, 15:52
                0
                • M mrjj
                  3 Aug 2020, 20:53

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

                  W Offline
                  W Offline
                  wesblake
                  wrote on 4 Aug 2020, 15:52 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
                  • M mrjj
                    3 Aug 2020, 20:53

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

                    Z Offline
                    Z Offline
                    Zygote64
                    wrote on 5 Aug 2020, 04:56 last edited by Zygote64 8 May 2020, 04:56
                    #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.

                    M 1 Reply Last reply 5 Aug 2020, 05:31
                    0
                    • Z Zygote64
                      5 Aug 2020, 04:56

                      @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.

                      M Offline
                      M Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on 5 Aug 2020, 05:31 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 7 Aug 2020, 23:38 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 21 Aug 2020, 12:02 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