Ribbon button as menu - button

How should Ribbon XML look like to create a button like button "New" (with a small arrow below text) when you click it to create a list with 2 new small buttons like a list?
Button image:

Use a RibbonSplitButton -- see here.

Related

How to make toolbar icons work like a tab?

I'm very new. Suppose I have a toolbar with 2 buttons: Foo and Bar. Is there a way to make each triggering a different "frame"? That is, the toolbar icons work like tabs. Should each trigger a new window by an on-click event?
Thanks
You can use QStackedWidget. It provides a way to have multiple widgets on each other where only one is displayed at a time (Like a QTabWidget). Here is an example :
self.stackedWidget = QtWidgets.QStackedWidget(self)
self.stackedWidget.addWidget(firstPageWidget)
self.stackedWidget.addWidget(secondPageWidget)
self.ayout = QtWidgets.QVBoxLayout(self)
layout.addWidget(stackedWidget)
setLayout(layout)
Now on each button click you can change the current page using setCurrentIndex.

jssor - Go to next slide when clicking a "next" button or selecting a radio button

I am using the jssor Tab Slider to create an animated form. I want to add the option to move to the next slide within the content (not just by clicking the tabs at the top...)
2 ways I want to move to the next slide:
1. Select a radio button
2. Click continue button
I've tried adding data-u="arrowright" to my continue button, and it completely erased my tab navigation. I'm still not sure how to even start with the radio buttons.
I'm a newbie and need help!
Thanks
var jssor_slider1 = new $JssorSlider$(...;
$('img.next').click(function () {
jssor_slider1.$Next();
});
Hope this help.
jssor_slider1.$GoTo( myImageNum )

How to use Panel as Button Menu in Sencha Architect?

PROGRAMS USED: Sencha Architect with ExtJS 4.2.
CURRENT SITUATION: My Button use a Start Menu style. The Start Menu is Panel type. I put both the Button and the Start Menu Panel in a Taskbar. Since I can't point the Button to use the Panel as a Menu in Architect (it automatically creates a Menu type when I click create Menu), so I use this code in the Taskbar afterLayout event:
container.getComponent('StartButton').menu = container.getComponent('StartMenuView');
PROBLEMS: The StartMenu displayed correctly when I click the Button, but I can't close it no matter where I click. What did I miss? Any help is appreciated.
Decided to switch to another much simpler approach that I've just figured: Use my "StartMenu" Panel as a Menu Item in my "Start" Button.

when choose customized qcompleter dropdown list item, it does not appear in customized lineditor

I followed this great example, but when I use the arrow key to go through the customized QCompleter dropdown list item, the item does not appear in the customized line editor (it is highlighted in blue in the dropdown list). when I hit the enter button, the item will appear in the line editor highlighted in blue. then i have to hit the enter button again to let the editor take the item.
this is different from how QCompleter behaves. in QCompleter, when using the arrow key to go through the items, they will automatically appear in the editor without highlight. when hitting the enter button, the editor will take the item.
I spent a lot of time debugging, but couldn't figure out what's wrong.
I think this is a bug as described here: QTBUG-3745. There you can also find a workaround.

Qt:creating a dynamic button

I want to create an application in which i will create a button and by pressing that button as list of options will open and i can choose one of them.for example i will create a button named "searching algorithm" and by clicking this button a list will open at same place which display two options as linear search and binary search.can anyone give me an idea how to do that?
You want a QComboBox:
The QComboBox widget is a combined button and popup list.
I believe what you need is a popup window where you can have list of options, whenever your button is clicked show this window, hide it when user selects an item in the list or clicks outside of the working area. There is an example you can use as a reference:
QT 4.7 Google Suggest Example
hope this helps,
regards

Resources