Solved How to restore hidden QToolbar non-programatically on Mac OS X
-
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.
-
Hi and welcome to devnet,
You can find that file in
~/Library/Application\ Support/
-
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.
-
Nothing bearing your application/organization name ?
-
@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.
-
Are you using QSettings in your application ?
-
@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.
-
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.
-
@SGaist No worries. It is usually the way that you solve your own problem once you ask someone else. ;0)
-
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 :)
-
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.
-
Might not be completely intuitive. That something you can bring to the attention of the NodeBB folks :)