How do I rearrange menu bar options in Qt Designer 5? - qt

I have been unable to figure out how to easily rearrange the menu bar selections that I have created in Qt Designer. Older documentation indicates that I can press the left click mouse button on a selection and then drag and drop it into a new location but this feature does not seem to work in this version.
I am trying to move "Load Database" above the "Exit" option. I would imagine I could just delete the "Exit" menu selection and add it again but I was hoping there would be an easier option in case this happens again.

To do so you need to go in the ui editor.
Then click on File. Press and hold on the item you want to move. Move it.
Below you can see the exact same thing done in QT 4.12.3 and Window 10.
Press file
Press and hold on the desired item
Drag the selected item where you want
Now the 'Save as' is above 'Save'

Select your action in Designer
Press Ctrl + Up/Down

Ctrl + Up/Down is working for me (Qt desinger 5.15.0)

Related

Inserting an image in GUI using QT Designer

I am new to QtDesigner. I wanted to know how to insert an image in the GUI using QT Designer. I am trying to add a logo. Help would be appreciated.
You can start inserting a label. Next, you right click on it an then click "change rich text...". A new window will pop-up.
Click on the figure Icon "Insert figure".
Now, you have to create a resource file. Click on the Pencil button.
Next, click on the "New resource file" button.
Choose a name and a folder (your working directory would be a good choice) to save it.
Now, click on the "Add prefix" button.
Choose a name for it.
Then, click on the "Add file" button.
And there you go! Click "OK" and you figure should be there.
Just be aware that you should resize your figure to a proper size before using it.
Hope it helps!
The easiest way I've seen so on :
You drag and drop your Label on your window, select the Label, you'll see on the right side of your screen the 'Property Editor' frame and the 'QLabel' menu, you click on pixmap => Choose File..., select a file and that's it.
Make sure you have resized it before, you won't be able to do so in QtDesigner.
Just for you to know I'm just a beginner on PyQT5 / QtDesigner, so that may not be the proper way to do it.
Hope it helps

QT strange GUI Components: Tabs?

I saw once someone making the GUI in QT and he had something I have never seen until now: They looked like big buttons one after another and when you clicked on them, the buttons below were going down, making space for the dialog or tab. It was like, if you click on the button "Draw", suddenly below the button a tab or a dialog or ??? appeared with all the GUI components (radio buttons, listboxes, ...) that you need for draw. When you clicked on another button, this GUI disappeared to make space for another GUI. Does anybody know what it is?
Qt does support tabs.
They are actually different widgets you can switch from in the same window.
Here you can find an example on how to use then: http://qt-project.org/doc/qt-4.8/declarative-ui-components-tabwidget.html
Inside a tab it's just like a normal widget.

Editing Build Settings in xcode 4

I have been unable to work out how to edit build settings using the pop-up shown below.
I can enter multiple lines in the pop-up by clicking the '+'. My questions are :-
What is the checkbox next to the setting used for?
Once I have entered one or more settings in the pop-up, how do I make them transfer to the setting I am editing. There isn't a 'Save' button, and clicking off the pop-up closes it but doesn't seem to save the entered data.
Thanks
To delete, check the checkbox and click "-".
To make a new one, click "+".
To save, click "Done".
Welcome to the Wonderful World of Apple UX.

Close Other tabs in XCode 4?

Am I crazy or is it not possible to close other tabs in XCode 4? I have about 7 tabs opened littering my workspace. I right click the one tab I'm interested in to bring up the context menu. I can see options to open a "new tab", "close tab", "close other tabs", and "move tab to new window". However, the only option that is not greyed out is "new tab". Do I have to put XCode in some magical state to enable the other options? Are these options merely eye candy, teasing me with hopes and aspirations of things I might like to do? Is this some weird kind of year long April fools gag? Inquiring minds wanna know.
*Update Uploading a HocusFocus screen capture for clarity...
You should be able to hover over the tab and click on the cross that appears on the left hand side of the tab. However, if you are not seeing this cross for some strange reason - you should be able to close the current tab in XCode (similar to many other OSX applications) by pressing CMD+W on your keyboard.
While the context menu doesn't work when you right click on a tab, you can achieve all of the same results by using keyboard shortcuts (which do seem to work as expected). Each of the 4 options on the context menu maps to the following shortcuts;
New Tab: CMD + T
Close Tab: CMD + W
Close Other Tabs: CMD + ALT + W
Move Tab to Other Window: I couldn't find a keyboard shortcut, but you can click and drag the tab away from the menu bar.
There doesn't appear to be a sensible way to enable the context menu on the tabs at the current time.
Late to the party but are/were you in full screen? Try again after quitting full screen...
Just click: View -> Hide tab bar
I had a similar issue (I say 'similar, because using Cmd+W. Cmd+Alt+W' didn't work for me).
In my case the tab had a cross on the top right, grayed out and nothing happens when clicking on it. If I opened a new tab, I could close either of the extra tabbed editors, but not both(!)
In View > Editor, selecting 'Standard' removes the 'second tabbed editor'.

What is the proper name for a multibutton?

I'm trying to design a UI in Qt and I can't find anywhere in the designer a button which can be "droped down" like combobox. What I mean by that is that I would like to have this button with his "default" option choosen so if I like it I would have to just click on it but if I would like to choose different option I would be able to clik the little arrow on the right side of this button and then pick option suitable for me at that moment.
You're looking for a QToolButton that has a set of actions or a menu set on it. From the documentation, the QToolButton::ToolButtonPopupMode...
Describes how a menu should be popped up for tool buttons that has a menu set or contains a list of actions.
Of it's values, the two that I see most frequently are DelayedPopup:
After pressing and holding the tool button down for a certain amount of time (the timeout is style dependant, see QStyle::SH_ToolButton_PopupDelay), the menu is displayed. A typical application example is the "back" button in some web browsers's tool bars. If the user clicks it, the browser simply browses back to the previous page. If the user presses and holds the button down for a while, the tool button shows a menu containing the current history list
And MenuButtonPopup:
In this mode the tool button displays a special arrow to indicate that a menu is present. The menu is displayed when the arrow part of the button is pressed.

Resources