The QCalendarWidget displays a monthly calendar which allows a user a convenient way to select a date. This code shows how to set the minimum and maximum date range for a calendar.
The CopperSpice documentation is extensive, so let’s break it down into some smaller components. We have multiple tutorials and videos about programming and using C++. This article will explain where to find all of these.
This example shows how to use two other static methods in QFileDialog for the user to select a directory or file name.
This example shows how to use two other static methods in QInputDialog for the user to enter an item from a fixed list or some text.
This example shows how to use two static methods in QInputDialog for the user to enter a number.
This example introduces the QErrorMessage class and one additional message box static method.
In the next few examples we will look at how to use several different static methods provided by the CopperSpice GUI library.
The idea in this code is to set up a relationship between a QSpinBox, QProgressBar, QSlider, and a QDial. The progress bar is read only and can only react to value changes. Modifying the value of the other three widgets will cause all four to be updated automatically.
This example will show how to configure a QLineEdit when the user needs to enter a password.
In these next few examples let’s look at some of the properties for a QLineEdit. This example will show how to add a mask to the edit widget to restrict the formatting.
In these next few examples let’s look at some of the properties for a QLineEdit.
When developers are evaluating CopperSpice the subject of the Verdigris project is sometimes mentioned. So let’s talk about what Verdigris is, what it does, and what it can not do.
Opening a dialog to show color samples is interesting but now we want to do something with the selected color.
Signals and Slots are used for communication between objects.
Let’s take the prior example and refactor the source code to make it modular. This will give us the flexibility to add new functionality without affecting other areas of the software.