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. QMessageBox subclass has different appearance from base class in macOS
Qt 6.11 is out! See what's new in the release blog

QMessageBox subclass has different appearance from base class in macOS

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 3 Posters 3.5k Views 1 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.
  • S sanjacob

    This post is deleted!

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #2

    @sanjacob said in QMessageBox subclass has different appearance from base class in macOS:

    Does anyone know why this happens

    Maybe because you're not calling base class constructor?

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    2
    • S Offline
      S Offline
      sanjacob
      wrote on last edited by sanjacob
      #3

      @jsulm Maybe I have already checked that and therefore posted here?

      Pl45m4P 1 Reply Last reply
      0
      • S Offline
        S Offline
        sanjacob
        wrote on last edited by
        #4
        This post is deleted!
        1 Reply Last reply
        0
        • S sanjacob

          @jsulm Maybe I have already checked that and therefore posted here?

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by Pl45m4
          #5

          @sanjacob said in QMessageBox subclass has different appearance from base class in macOS:

          Maybe I have already checked that and therefore posted here?

          The "maybe" by @jsulm wasn't actually a "maybe". It was more like a definite "Do you know that you don't call the base class constructor?!"

          Because we all can see it here
          (unless there is code you did not show)

          @sanjacob said in QMessageBox subclass has different appearance from base class in macOS:

          class MyMessageBox(QMessageBox):
              pass
          

          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          S 1 Reply Last reply
          0
          • Pl45m4P Pl45m4

            @sanjacob said in QMessageBox subclass has different appearance from base class in macOS:

            Maybe I have already checked that and therefore posted here?

            The "maybe" by @jsulm wasn't actually a "maybe". It was more like a definite "Do you know that you don't call the base class constructor?!"

            Because we all can see it here
            (unless there is code you did not show)

            @sanjacob said in QMessageBox subclass has different appearance from base class in macOS:

            class MyMessageBox(QMessageBox):
                pass
            
            S Offline
            S Offline
            sanjacob
            wrote on last edited by
            #6

            @Pl45m4 Oh god.

            Is everyone here incapable of extrapolating data?

            Yes, the example I posted, does not contain a constructor.

            However, I thought it was enough to convey the issue. That, of course was a mistake.

            Yes I tried calling the base constructor. I would have edited the post after @jsulm's helpful comment but the forum doesn't let you after some time.

            Now, given that I seem to be the only one with a working python interpreter, any more ideas?

            Pl45m4P 1 Reply Last reply
            0
            • S sanjacob

              @Pl45m4 Oh god.

              Is everyone here incapable of extrapolating data?

              Yes, the example I posted, does not contain a constructor.

              However, I thought it was enough to convey the issue. That, of course was a mistake.

              Yes I tried calling the base constructor. I would have edited the post after @jsulm's helpful comment but the forum doesn't let you after some time.

              Now, given that I seem to be the only one with a working python interpreter, any more ideas?

              Pl45m4P Offline
              Pl45m4P Offline
              Pl45m4
              wrote on last edited by
              #7

              @sanjacob

              and for what reason exactly you decided to delete the topic and create a new topic with the same question/issue again?


              If debugging is the process of removing software bugs, then programming must be the process of putting them in.

              ~E. W. Dijkstra

              S 1 Reply Last reply
              0
              • Pl45m4P Pl45m4

                @sanjacob

                and for what reason exactly you decided to delete the topic and create a new topic with the same question/issue again?

                S Offline
                S Offline
                sanjacob
                wrote on last edited by
                #8

                @Pl45m4 For what reason do you feel it was necessary to ask?

                Man, is this the right forum? I didn't come here to debate with anyone. I want my question answered by someone who can. I doubt that's you, since in your past two comments you had nothing to say about my actual question.

                Pl45m4P 1 Reply Last reply
                0
                • S sanjacob

                  @Pl45m4 For what reason do you feel it was necessary to ask?

                  Man, is this the right forum? I didn't come here to debate with anyone. I want my question answered by someone who can. I doubt that's you, since in your past two comments you had nothing to say about my actual question.

                  Pl45m4P Offline
                  Pl45m4P Offline
                  Pl45m4
                  wrote on last edited by
                  #9

                  @sanjacob said in QMessageBox subclass has different appearance from base class in macOS:

                  Man, is this the right forum? I didn't come here to debate with anyone

                  That's unfortunate. This is what the term "Forum" means ;-)
                  It was a market place where people got together and shops were opened or people had a chat

                  • https://en.wikipedia.org/wiki/Forum_(Roman)

                  For what reason do you feel it was necessary to ask?

                  We have rules here.
                  Creating and deleting topics just because you don't like an answer isn't exactly very helpful.

                  Also, since we don't have our crystal balls at hand... some of them are in inspection... so how should we know that you didn't post the complete code?!


                  If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                  ~E. W. Dijkstra

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    sanjacob
                    wrote on last edited by
                    #10

                    That makes 3 posts without direct relation to my first. A shame.
                    About those rules, how about: "posts should at least try to focus on the issue at hand"?

                    Pl45m4P 1 Reply Last reply
                    0
                    • S sanjacob

                      That makes 3 posts without direct relation to my first. A shame.
                      About those rules, how about: "posts should at least try to focus on the issue at hand"?

                      Pl45m4P Offline
                      Pl45m4P Offline
                      Pl45m4
                      wrote on last edited by Pl45m4
                      #11

                      @sanjacob said in QMessageBox subclass has different appearance from base class in macOS:

                      at least try to focus on the issue at hand

                      Ok, focus on your issue then :)
                      We are all volunteers here. Nobody needs to help you.
                      And if one get blamed for questioning the obvious (in your inital topic), it doesn't help at all :)

                      I seem to be the only one with a working python interpreter

                      How should we know, since you are the only one?!
                      Good luck :)

                      You might want to take a look at the documentation and read what's written there.

                      • https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QMessageBox.html

                      or

                      • https://doc.qt.io/qt-6/qmessagebox.html

                      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                      ~E. W. Dijkstra

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        sanjacob
                        wrote on last edited by
                        #12

                        @Pl45m4 No need to hide typos. We are all human here.
                        I certainly did not specifically ask for your help. This is a public space.
                        The problem with you is you assume you are the only one who can read the documentation.
                        Believe me, if I didn't need to post here I wouldn't have done so. I guess this is Qt's way of making you pay for the actual support :)

                        Thanks for your help.

                        jsulmJ 1 Reply Last reply
                        0
                        • S sanjacob

                          @Pl45m4 No need to hide typos. We are all human here.
                          I certainly did not specifically ask for your help. This is a public space.
                          The problem with you is you assume you are the only one who can read the documentation.
                          Believe me, if I didn't need to post here I wouldn't have done so. I guess this is Qt's way of making you pay for the actual support :)

                          Thanks for your help.

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #13

                          @sanjacob Please stop writing rude posts! Most people here are volunteers and help for free.
                          Read and follow https://forum.qt.io/topic/113070/qt-code-of-conduct

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          3

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved