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
QtWS25 Last Chance

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.2k 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.
  • AndyBriceA Offline
    AndyBriceA Offline
    AndyBrice
    wrote on 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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
      • AndyBriceA Offline
        AndyBriceA Offline
        AndyBrice
        wrote on 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
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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

          AndyBriceA 2 Replies Last reply
          0
          • SGaistS SGaist

            Nothing bearing your application/organization name ?

            AndyBriceA Offline
            AndyBriceA Offline
            AndyBrice
            wrote on 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
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on 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
              • SGaistS SGaist

                Nothing bearing your application/organization name ?

                AndyBriceA Offline
                AndyBriceA Offline
                AndyBrice
                wrote on 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
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 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

                  AndyBriceA 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    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.

                    AndyBriceA Offline
                    AndyBriceA Offline
                    AndyBrice
                    wrote on 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
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 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
                      • AndyBriceA Offline
                        AndyBriceA Offline
                        AndyBrice
                        wrote on 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
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 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

                          • Login

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