capture QKeySequence from QKeyEvent

Static cast : Pass QWidget and grab Custom class out that

QShortcut , QKeySequence and variable name as SLOT example code

QShortcut , QKeySequence and variable name as SLOT example code

QMap in reverse order using QMapIterator

Set QIcon or say Icon in QListView

Create a new model class based on QSqlQueryModel and implement data() method like below:

Then connect it to QListView like this:

Different Mouse Events in Qt

Get objectname of event sender in Qt

What would be object name which sends event ? Use QObject::sender() to get the sending object.

Removing MinGW dll dependencies in QT Static linking

libgcc_s_dw2-1.dll Passing -static-libgcc will remove this dependency for all languages other than C. Note: C++ exceptions depends on this option. mingwm10.dll Remove -mthreads option from your makefile. Note: Multithreading and...

Use QColor from getColor on QLabel and QTextbox

create a custom dialog box with multi line input in qt

show data in external window with custom widget in qt

Sometime you need to show data in external window with custom widget(s). This little code will help you.

getting all files from subdirectories recursively with c using qt framework/

Original link : phalanx.spartansoft.org/2009/01/20/getting-all-files-from-subdirectories-recursively-with-c-using-qt-framework/

Simulate a Key event press/release in QT 4

Qt Code Example: MessageBox

Qt Code Example : Open File