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. Action at the menubar can't be disabled? Probably a bug of Qt or Ubuntu?
Forum Update on Monday, May 27th 2025

Action at the menubar can't be disabled? Probably a bug of Qt or Ubuntu?

Scheduled Pinned Locked Moved General and Desktop
18 Posts 6 Posters 6.4k 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.
  • L Offline
    L Offline
    Leon
    wrote on last edited by
    #1

    So @ui->actionAction->setEnabled(false);@ doesn't work for me...

    If you want see it yourself: "Link":http://dl.dropbox.com/u/11379868/example.zip

    The same with setting an icon while iconvisibleinmenu is true:
    @ui->actionHistory->setIcon(QIcon(":/icons/Pictures/time_machine.png"));@

    I have to say that this was working at Ubuntu 10.10...

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Scylla
      wrote on last edited by
      #2

      This works here as expect (Ubuntu 10.10)! Are you sure that the propety is not changed elsewhere?

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Leon
        wrote on last edited by
        #3

        Yes see the link.. It is just a button that disables the action, nothing else.. :(

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Scylla
          wrote on last edited by
          #4

          Ok I see. I have tested your example here and it works as exected!
          Which version do you use? I'm using the QtSDK and not the lib's provided by ubuntu!

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rokemoon
            wrote on last edited by
            #5

            Hm, on Kubuntu it's work fine (I know that problem on Ubuntu, I compile it just for test)

            1 Reply Last reply
            0
            • L Offline
              L Offline
              Leon
              wrote on last edited by
              #6

              I am using Qt 4.7.2 (32 bit). How can i found out if am using the QtSDK or the lib’s provided by ubuntu?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Scylla
                wrote on last edited by
                #7

                You can see it on the Qt4 settings page. Or type qmake -query in a console.

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  Leon
                  wrote on last edited by
                  #8

                  this is my outpout:
                  @QT_INSTALL_PREFIX:/usr
                  QT_INSTALL_DATA:/usr/share/qt4
                  QT_INSTALL_DOCS:/usr/share/qt4/doc
                  QT_INSTALL_HEADERS:/usr/include/qt4
                  QT_INSTALL_LIBS:/usr/lib
                  QT_INSTALL_BINS:/usr/bin
                  QT_INSTALL_PLUGINS:/usr/lib/qt4/plugins
                  QT_INSTALL_IMPORTS:/usr/lib/qt4/imports
                  QT_INSTALL_TRANSLATIONS:/usr/share/qt4/translations
                  QT_INSTALL_CONFIGURATION:/etc/xdg
                  QT_INSTALL_EXAMPLES:/usr/lib/qt4/examples
                  QT_INSTALL_DEMOS:/usr/lib/qt4/demos
                  QMAKE_MKSPECS:/usr/share/qt4/mkspecs
                  QMAKE_VERSION:2.01a
                  QT_VERSION:4.7.2
                  @

                  So?

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    Scylla
                    wrote on last edited by
                    #9

                    So do you use the lib's provided by ubuntu. Try to install the QtSDK which inlcudes version 4.7.3.

                    1 Reply Last reply
                    0
                    • L Offline
                      L Offline
                      Leon
                      wrote on last edited by
                      #10

                      The same again...
                      Look some screenshots: "1":http://i55.tinypic.com/15q6yvp.jpg, "2":http://i55.tinypic.com/15yspie.jpg

                      1 Reply Last reply
                      0
                      • J Offline
                        J Offline
                        jim_kaiser
                        wrote on last edited by
                        #11

                        This could be a valid bug in Qt or Ubuntu 11.04. The change in the handling of the menu bar in 11.04 may have broken the enabling and disabling of actions. You should report it in the "Qt bug tracker":http://bugreports.qt.nokia.com anyway. I cannot test it, because I'm still running 10.04 for stability..

                        1 Reply Last reply
                        0
                        • L Offline
                          L Offline
                          Leon
                          wrote on last edited by
                          #12

                          "Reported!":http://bugreports.qt.nokia.com/browse/QTBUG-19845

                          1 Reply Last reply
                          0
                          • H Offline
                            H Offline
                            Holger
                            wrote on last edited by
                            #13

                            Is it still not working for you?

                            I am also working on Ubuntu 11.04, but its working for me.

                            The Action can be disabled and the Menu is attached to the application and not to the top Unity bar

                            1 Reply Last reply
                            0
                            • L Offline
                              L Offline
                              Leon
                              wrote on last edited by
                              #14

                              At the application i am developing it works fine!
                              But i just checked the example i have at post#1 and it doesn't work..
                              It is weird i can say..
                              @ui->actionAction->setEnabled(false);@
                              really doesn't work at the example..

                              1 Reply Last reply
                              0
                              • H Offline
                                H Offline
                                Holger
                                wrote on last edited by
                                #15

                                this is how it looks for me, so perfectly fine.

                                I added the QT Version running on my machine running Ubuntu 11.04

                                "On my machine":http://i55.tinypic.com/2uf9aag.png

                                "Whole Desktop with Unity":http://i53.tinypic.com/2cz6m1e.png

                                1 Reply Last reply
                                0
                                • L Offline
                                  L Offline
                                  Leon
                                  wrote on last edited by
                                  #16

                                  Hmm i have Qt 4.7.2
                                  How do you update to 4.7.3 at ubuntu?

                                  P.S I don't have Qt SDK

                                  1 Reply Last reply
                                  0
                                  • H Offline
                                    H Offline
                                    Holger
                                    wrote on last edited by
                                    #17

                                    you can build it yourself for example, but since the problem seems to be fixed in Qt 4.7.3 it is no longer reproducable

                                    1 Reply Last reply
                                    0
                                    • K Offline
                                      K Offline
                                      kecsap
                                      wrote on last edited by
                                      #18

                                      This bug is in somewhere in the Xorg. I use 32 bit, Kubuntu, Oneiric, I lost one hour from my development time to realize that it is not my fault. :-|

                                      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