Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    [SOLVED] Problems with actions in menuBar

    General and Desktop
    2
    10
    2258
    Loading More Posts
    • 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
      leandrogs last edited by

      hey guys! I'm trying to create an action in menu bar (mainwindow), but when i compile the application, the action is not shown in menu bar. i've already made a clean build without success... What can i do?

      1 Reply Last reply Reply Quote 0
      • Chris Kawa
        Chris Kawa Moderators last edited by

        Some code would be useful

        1 Reply Last reply Reply Quote 0
        • L
          leandrogs last edited by

          I'm using Qt Form Designer

          1 Reply Last reply Reply Quote 0
          • L
            leandrogs last edited by

            MenuBar do not shows the changes that i try to make using Qt Form Designer.

            1 Reply Last reply Reply Quote 0
            • Chris Kawa
              Chris Kawa Moderators last edited by

              Clearly the designer works in general, so could you give a little more detail? OS, version of creator and Qt for starters. What steps are you taking, what have you tried etc.
              Do any other changes to the widgets are applied? Like if you added a button somewhere? What if you added an action to the bar from code, does that get applied?

              1 Reply Last reply Reply Quote 0
              • L
                leandrogs last edited by

                OS: Ubuntu 12.04 32bits
                QtCreator: 2.4.1
                Qt: 4.8.0
                Steps: In menu Bar, i have a File menu. I create a new submenu clicking on "type here" then i execute the application (ctrl+r).

                If i add an button in mainWindow, do not works too. I do not tried to create by code, i will test this later.

                1 Reply Last reply Reply Quote 0
                • Chris Kawa
                  Chris Kawa Moderators last edited by

                  Things you can try:

                  • right click on the project and select "run qmake"
                  • delete the output folder entirely and try to build again
                  1 Reply Last reply Reply Quote 0
                  • L
                    leandrogs last edited by

                    Still not working :(

                    1 Reply Last reply Reply Quote 0
                    • L
                      leandrogs last edited by

                      SOLVED! I just uncheck "shadow build" in the "Projects" label, compile, and then check and compile again.

                      1 Reply Last reply Reply Quote 0
                      • Chris Kawa
                        Chris Kawa Moderators last edited by

                        What do you mean by not working? Not building? Not starting? Showing empty widget? Showing mainwindow with empty bars? Please try to be more specyfic and provide as much info as possible. At this pace we're not getting anywhere anytime soon ;)

                        If you deleted the output directory, rebuilt and your program run, then something did build and run but it's not your project.
                        If it's not your project then you have some serious configuration issue. Remove the output again, remove the .user file, re-open the project to re-configure the kit and see what happens.

                        EDIT: ok, I'm glad you figured it out

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post