Strikethrough doesn't work for menu items in SwiftUI - swiftui

I'm trying to make a menu item have a strikethrough style, but no matter what I do, I can't solve that. I've searched the web a lot without finding the answer.
I've tried something as simple as
Menu("Actions") {
Text("Banana 🍌🍌").strikethrough()
Text("Banana 🍌🍌").strikethrough(false)
}
but can't get it to work. I've tried with buttons as well, same problem. As soon as it's not in the menu it works, but not as a menu item. Any ideas what the problem is and how to solve it?

Related

Menu loads first as list then menu

My page is: https://www.svelysium.net/ And one can see the menu as a list flash first then display correctly. I'm testing visibility:none in the CSS for the div and then wanting to do an onload later for the visibility after the page loads so I don't get that menu flash. I've not put it up live because I can't seem to get it right. Sorry I can't find any examples of this issue and how to solve it and I have been trying to keep it simple. There must be an easy fix. Thanks in advance.

Qt QCombobox popup inconsistent position

I have searched far and wide and cannot find anything online about my issue even though it seems rather trivial, and i feel like there's just something I'm missing, so I apologise if the answer is apparent.
However, when I use a QComboBox in Qt, When I click on it instead of dropping down like I want it to, it shows the popup with the current selected item as the origin. If that doesn't make sense this is what I am referring to:
It shows the popup starting at the current selected item where the button is. I just want it to drop downwards like any other normal combobox! How can i Achieve this? If i make it editable it drops down exactly how i want it, but i don't want it to be editable!
Does anyone know what's up?
Edit:
I am running Windows 10

Scroll to top not working

I made a special combo box, I used a QTreeWidget to display the drop down context.
Now I have a Problem, if the drop down is displayed the scroll bar is always scrolled down.
But I want it to be scrolled up. (It should be some history combobox, the newest entries on top)
I tried to overwrote the scrollToTop with:
void MyComboBox::showPopup()
{
QComboBox::showPopup();
view()->scrollToTop();
}
This isn't working, the scrollbar is still on the bottom.
Does anyone know why this isn't working? Or knows a better solution?
Thank you
I just solved it.
The problem was, that at the QTreeWidgets the attribute AutoScroll is true for default.
Disabling this solved the problem.

Remove the "Customize Quick Access Toolbar" button

I'm working on a project where we want to have a quick access bar that is unchangeable/static. We've looked at inheriting from the CMFCQuickAccessToolbar and removing that button, but those attempts seem fruitless. Just getting rid of the button completely gets rid of the toolbar. Anyone have some experience with this, or an alternative approach?
After a lot of headache we found that there was no clean solution to removing just that button from the toolbar. Instead, we opted to place the buttons we wanted to display in the quickaccess bar in the tabs group. These button will appear on the right side (beside the help icon in word). To replicate the look of the QA buttons, I had to create an imagelist and load our buttons into it.
CImageList theList;
CBitmap bm;
bm.LoadBitmap( IDB_QASMALL );
theList.Create(16,16, ILC_COLOR32 | ILC_MASK, 5, 0);
theList.Add(&bm, RGB(192,192,192));
I then created ribbonButtons to be added to the tabs group, with the proper command IDs, empty text, and the proper icon from my image list.
CMFCRibbonButton* button = new CMFCRibbonButton( ID_SOMECOMMAND, _T("\na"), theList.ExtractIcon(<IconOffset>));
m_wndRibbonBar.AddToTabs(mp);
It's not a perfect solution, but it at least gives us a similar UI without the worry of getting rid of that stupid customize button. You also have the freedom to use labels on your buttons.

a Cufon problem on a nested menu

I'm building a nested navigation bar, here is the jsFiddle:
http://jsfiddle.net/3Y8vB/1/
the nested menus are on the third item, "Collezioni": so far so good. But adding Cufon triggers a strange problem: "hovering" the nested menus and going away from them all the way down, the "Collezioni" link disappears!
http://jsfiddle.net/3Y8vB/2/
Well, it doesn't really disappear: it retains the #fff color (:hover) instead of going back to #111 (normal state), and since the background is white too, it "disappears". Going all the way UP (without "hovering" the nested menus) has no problem.
I'm sure it's a Cufon related problem since the first version (without Cufon) is working nice.
Please, can you help to solve this? Thanks in advance
Ok, found the solution here:
https://github.com/sorccu/cufon/wiki/FAQ#wiki-faq-10
And here's the new jsFiddle:
http://jsfiddle.net/3Y8vB/3/