Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. How to delete a button in pyqt5 application
Qt 6.11 is out! See what's new in the release blog

How to delete a button in pyqt5 application

Scheduled Pinned Locked Moved Unsolved Qt for Python
13 Posts 3 Posters 2.6k 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.
  • J Offline
    J Offline
    john_hobbyist
    wrote on last edited by
    #1

    Hello, in this code: https://github.com/Axel-Erfurt/OrthoViewLite/blob/main/OrthoViewLite.py I cannot find where can I delete the store button ("diskette icon") on the upper left side...

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

      Hi,

      Since there's nothing in that code that seems related to the button you described, you should explore the rest of the framework you are using.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • J Offline
        J Offline
        john_hobbyist
        wrote on last edited by john_hobbyist
        #3

        The same happens If I need to change the appearance of the already installed buttons and put mine, with small image icons etc?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          The same what ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • J Offline
            J Offline
            john_hobbyist
            wrote on last edited by
            #5

            I need to change the icons of the buttons on the upper left area and put my own image icons. How can I achieve that?

            JonBJ 1 Reply Last reply
            0
            • J john_hobbyist

              I need to change the icons of the buttons on the upper left area and put my own image icons. How can I achieve that?

              JonBJ Online
              JonBJ Online
              JonB
              wrote on last edited by
              #6

              @john_hobbyist
              Did you try searching the source file you have for icon?

              J 1 Reply Last reply
              1
              • JonBJ JonB

                @john_hobbyist
                Did you try searching the source file you have for icon?

                J Offline
                J Offline
                john_hobbyist
                wrote on last edited by
                #7

                @JonB Yes, but there are nowhere in the code the upper left area buttons...

                JonBJ 1 Reply Last reply
                0
                • J john_hobbyist

                  @JonB Yes, but there are nowhere in the code the upper left area buttons...

                  JonBJ Online
                  JonBJ Online
                  JonB
                  wrote on last edited by
                  #8

                  @john_hobbyist
                  For me at least, perhaps show a screen shot of what you mean?

                  J 1 Reply Last reply
                  1
                  • JonBJ JonB

                    @john_hobbyist
                    For me at least, perhaps show a screen shot of what you mean?

                    J Offline
                    J Offline
                    john_hobbyist
                    wrote on last edited by john_hobbyist
                    #9

                    @JonB Yes, I want to change these with my own buttons (image icons)...! butons.jpg

                    JonBJ 1 Reply Last reply
                    0
                    • J john_hobbyist

                      @JonB Yes, I want to change these with my own buttons (image icons)...! butons.jpg

                      JonBJ Online
                      JonBJ Online
                      JonB
                      wrote on last edited by JonB
                      #10

                      @john_hobbyist
                      I don't see anything for this (the icons) in the .py source file. At a guess: you have

                      import matplotlib.backends.backend_qt5agg as mpl_qt
                      ...
                      class MyToolBar(mpl_qt.NavigationToolbar2QT):
                      

                      So is that some "matplot/Qt navigation toolbar"? Go look there.

                      1 Reply Last reply
                      2
                      • J Offline
                        J Offline
                        john_hobbyist
                        wrote on last edited by
                        #11

                        I am studying stackoverflow and various google search results but I am lost...

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          You should rather study matplotlib since you are using it.

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          J 1 Reply Last reply
                          1
                          • SGaistS SGaist

                            You should rather study matplotlib since you are using it.

                            J Offline
                            J Offline
                            john_hobbyist
                            wrote on last edited by
                            #13

                            @SGaist I have read this: https://matplotlib.org/3.2.2/users/navigation_toolbar.html I cannot figure out something. Also, how do I move them to right side all the buttons?

                            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