In this post I’m sharing a class called QGraphicsSepiaEffect that you can use to add Sepia effect to your Qt Widgets. It inherits QGraphicsEffect, which means you can easily add it to your project and use a single line of code to have Sepia effect on any widget or image (i.e. on a QLabel).
Continue reading “Use QGraphicsSepiaEffect to Add Sepia Effect Widgets”How to Get the Position of a Widget in a Cell (QTableWidget)
In this article I describe how you can get the position (row and column) of a Widget in a Cell, or to be precise, how to get row and column of a QWidget in a QTableWidget. This is specially useful in case you have a button or any other widget and you want to perform a task specific to that widget when it is pressed or triggered in any way.
Continue reading “How to Get the Position of a Widget in a Cell (QTableWidget)”