Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. I didn't create a toolBar, why does it appear? How can I delete the toolBar?
Forum Updated to NodeBB v4.3 + New Features

I didn't create a toolBar, why does it appear? How can I delete the toolBar?

Scheduled Pinned Locked Moved Unsolved Chinese
7 Posts 3 Posters 962 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.
  • L Offline
    L Offline
    Lee_Corl
    wrote on last edited by
    #1

    5e990be0-a584-47cb-a409-8d58bebe36a0-image.png

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

      Hi,

      Your base widget is a QMainWindow, the toolbar is a feature of it.

      You should be able to find it in the Object Inspector on the right-hand side, right-click and select Remove Toolbar 'mainToolbar' (the name might be something else).

      You can also hide it in code.

      Or depending on what you want to do, change the base widget to QWidget.

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

      L 1 Reply Last reply
      0
      • L Lee_Corl

        5e990be0-a584-47cb-a409-8d58bebe36a0-image.png

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #3

        @Lee_Corl Any reason why such old version 5.4.2 of Qt is used? I tried the latest 6.8 and did not see that toolbar is displayed in Designer.

        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          Your base widget is a QMainWindow, the toolbar is a feature of it.

          You should be able to find it in the Object Inspector on the right-hand side, right-click and select Remove Toolbar 'mainToolbar' (the name might be something else).

          You can also hide it in code.

          Or depending on what you want to do, change the base widget to QWidget.

          L Offline
          L Offline
          Lee_Corl
          wrote on last edited by
          #4

          @SGaist said in I didn't create a toolBar, why does it appear? How can I delete the toolBar?:

          Hi,

          Your base widget is a QMainWindow, the toolbar is a feature of it.

          You should be able to find it in the Object Inspector on the right-hand side, right-click and select Remove Toolbar 'mainToolbar' (the name might be something else).

          You can also hide it in code.

          Or depending on what you want to do, change the base widget to QWidget.

          @SGaist said in I didn't create a toolBar, why does it appear? How can I delete the toolBar?:

          Hi,

          Your base widget is a QMainWindow, the toolbar is a feature of it.

          You should be able to find it in the Object Inspector on the right-hand side, right-click and select Remove Toolbar 'mainToolbar' (the name might be something else).

          You can also hide it in code.

          Or depending on what you want to do, change the base widget to QWidget.

          29bc517d-c169-41f7-b880-ce39b78525f4-image.png I cant find the toolBar on here

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

            Since you are using a fairly outdated stack, use the other option which is to remove it in code.

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

            L 1 Reply Last reply
            0
            • SGaistS SGaist

              Since you are using a fairly outdated stack, use the other option which is to remove it in code.

              L Offline
              L Offline
              Lee_Corl
              wrote on last edited by
              #6

              @SGaist I dont use it

              SGaistS 1 Reply Last reply
              0
              • L Lee_Corl

                @SGaist I dont use it

                SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Lee_Corl said in I didn't create a toolBar, why does it appear? How can I delete the toolBar?:

                @SGaist I dont use it

                What do you mean ?

                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
                0

                • Login

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