Programming Leftovers
-
7 Reasons Why Laravel Framework is the Best for Your Website
Laravel is a free, open-source PHP web application framework that uses the model-view-controller (MVC) architectural pattern to create web applications. Taylor Otwell created it in 2011, and it has since become one of the most popular PHP frameworks, widely used by developers worldwide.
-
GDC 2023: Retrospective
We attended the Game Developers Conference (GDC) in San Francisco this year.
-
How Long Does it Take to Win War?
My son has been learning Python and wanted to know how many rounds does it take, on average, for someone to win the game of war. If you are not familar with the game, it is a two player game where each player gets half a deck of cards (26).
-
Accessible icon-only buttons in QML
Buttons are a fundamental element in user interfaces, but it’s easy to make some accessibility mistakes when using icon-only buttons in QML.
First, please avoid icon-only buttons and only use then, when the icon is very well known (e.g. arrows, delete or favorite icons) and the space is limited.
In case you still want to use an icon-only button. Make sure to set the
text:
property and that it is also translatable. Otherwise, a screen reader won’t know that to say about the button. This is because thetext:
property is used as default value for theAccessible.name:
property, so when it is not set Accessible.name is empty and the screen reader can only say that the currently focused control is a button. The trick to have both thetext:
property set and an icon-only button is to use thedisplay:
property and assign it to theAbstractButton.IconOnly
.