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. How to restore hidden QToolbar non-programatically on Mac OS X
Forum Update on Monday, May 27th 2025

How to restore hidden QToolbar non-programatically on Mac OS X

Scheduled Pinned Locked Moved Solved General and Desktop
qtoolbarmacqt5
12 Posts 2 Posters 3.3k 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.
  • A Offline
    A Offline
    AndyBrice
    wrote on 14 Mar 2016, 10:49 last edited by
    #1

    A customer has right clicked on the tool bar of the Mac version of my software and unchecked the toolbar. This has hidden the toolbar and it doesn't reappear when he restarts the application. This was default Qt behaviour that I didn't program. He and I don't know how to get the toolbar to reappear (on the Windows version you can click the right click the main menu to access the toolbar menu). I am guessing we can reset it by deleting a .plist file somewhere, but I don't know where. Any ideas?

    I can add a 'view' menu item that allows him to restore the toolbar, but I wasn't planning to put out another release for a few weeks, so I need a non-programmatic workaround for now. Any help appreciated.

    I am using Qt 5.5.1.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 14 Mar 2016, 10:54 last edited by
      #2

      Hi and welcome to devnet,

      You can find that file in ~/Library/Application\ Support/

      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
      • A Offline
        A Offline
        AndyBrice
        wrote on 14 Mar 2016, 11:35 last edited by
        #3

        Thanks for the quick response. But I don't see anything in that folder that looks related to my Application. There is a 'Trolltech' folder, but that only seems to relate to Qt Assistant.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 14 Mar 2016, 12:23 last edited by
          #4

          Nothing bearing your application/organization name ?

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

          A 2 Replies Last reply 14 Mar 2016, 12:29
          0
          • S SGaist
            14 Mar 2016, 12:23

            Nothing bearing your application/organization name ?

            A Offline
            A Offline
            AndyBrice
            wrote on 14 Mar 2016, 12:29 last edited by
            #5

            @SGaist No. Not that I can see.

            My other (Qt 4 based product) does have a folder there. But it only seems to contain files that I put there. Nothing that Qt has created to store toolbar state.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 14 Mar 2016, 12:33 last edited by
              #6

              Are you using QSettings in your application ?

              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
              • S SGaist
                14 Mar 2016, 12:23

                Nothing bearing your application/organization name ?

                A Offline
                A Offline
                AndyBrice
                wrote on 14 Mar 2016, 12:34 last edited by
                #7

                @SGaist It turns out that I can restore the toolbar by deleting the QSettings file:

                ~/Library/Preferences/com.oryxdigital.HyperPlan.plist

                I thought I had already tried that. I guess Qt must be putting it in there.

                1 Reply Last reply
                1
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 14 Mar 2016, 12:37 last edited by
                  #8

                  Argle… My bad, that's that folder I had in mind first ! Sorry for the wrong pointer. Application Support is for stuff you generate for your application to use.

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

                  A 1 Reply Last reply 14 Mar 2016, 12:37
                  0
                  • S SGaist
                    14 Mar 2016, 12:37

                    Argle… My bad, that's that folder I had in mind first ! Sorry for the wrong pointer. Application Support is for stuff you generate for your application to use.

                    A Offline
                    A Offline
                    AndyBrice
                    wrote on 14 Mar 2016, 12:37 last edited by
                    #9

                    @SGaist No worries. It is usually the way that you solve your own problem once you ask someone else. ;0)

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 14 Mar 2016, 12:57 last edited by
                      #10

                      Yep, sure thing :)

                      Since you have it working now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)

                      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
                      • A Offline
                        A Offline
                        AndyBrice
                        wrote on 16 Mar 2016, 13:57 last edited by
                        #11

                        mark the thread as solved using the "Topic Tool" button

                        It tooks me several attempts to work out how to do that. That is quite poor UI design IMHO.

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 16 Mar 2016, 21:59 last edited by
                          #12

                          Might not be completely intuitive. That something you can bring to the attention of the NodeBB folks :)

                          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

                          1/12

                          14 Mar 2016, 10:49

                          • Login

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