Qt Toggle Button Qt Creator Example

Simple example application that shows how to set up and use a Qt toggle button using Qt Creator and C++. Creates a Toggle Button from a QPushButton. The following image shows the simple application built in this part of the tutorial series. It shows how to use a Qt toggle button. Comparing Qt with GTK: … Continue reading Qt Toggle Button Qt Creator Example

QComboBox Qt Creator Example

A simple Qt example for beginners that shows how to use a QComboBox widget using Qt Creator and C++ code. Get the selected item number and selected text from a Qt Combo Box in this tutorial. The image below shows the application built in this part of the Qt Creator C++ tutorial series. A QComboBox … Continue reading QComboBox Qt Creator Example

Change Label Color in Qt Game Tutorial

How to change label color in Qt with a simple game example using C++ and Qt Creator. Build a heads or tails coin toss game in this tutorial. The image below shows the simple game built in this part of the Qt programming tutorial series. It is an enhanced version of the simple coin toss … Continue reading Change Label Color in Qt Game Tutorial

Position Widgets in Qt Creator

How to position widgets in Qt Creator design mode. Tips and tricks on placing and aligning widgets on a window in a Qt widget based application. Fixed widget position layout and a layout that stretches when the window is resized. The following image shows the difference between two layouts. On the left is the Hello … Continue reading Position Widgets in Qt Creator

GtkCheckButton Glade GTK C Tutorial

How to use a GtkCheckButton, which creates a check button or check box, in a Glade GTK C program. Read the state of a GtkCheckButton in C code in this GTK Glade tutorial. The following image shows the application built in this tutorial. It uses three GtkCheckButton widgets and prints their states to the command … Continue reading GtkCheckButton Glade GTK C Tutorial

Qt Programming Tutorial Introduction

A brief overview of Qt in preparation for learning Qt programming in a Qt programming tutorial series. Learn to write cross platform GUI applications using Qt Creator and the C++ programming language. Part 1 of the Qt Creator C++ Tutorial Go to the Qt Programming Tutorial Series Table of Contents What is Qt? Qt is … Continue reading Qt Programming Tutorial Introduction

Change Label Color in GTK Game Tutorial

How to change label color in GTK using the gtk_label_set_markup function. Demonstrates changing text color in a simple heads or tails game programmed with C, GTK and Glade. Part 14 of GTK 3 Programming with C and Glade Tutorial See the full GTK3 tutorial index About this Tutorial This tutorial improves the world’s simplest game … Continue reading Change Label Color in GTK Game Tutorial

GtkToggleButton Glade GTK C Program Tutorial

This GtkToggleButton Glade GTK C program tutorial shows how to use a toggle button and read its state using C code. The user interface is laid out using the Glade user interface designer. GTK+ 3 and the C programming language is used in the project example. Part 18 of GTK 3 Programming with C and … Continue reading GtkToggleButton Glade GTK C Program Tutorial

GtkComboBoxText Glade GTK C Program

GtkComboBoxText Glade GTK C program shows how to use a GtkComboBoxText widget as a drop-down text selection box. Get the selected text and selected item number from a user in this GTK+  3 text combo box tutorial. The GtkComboBoxText widget contains a list of text items that are selectable as a drop-down list. Part 17 … Continue reading GtkComboBoxText Glade GTK C Program