Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 1.45 KB

README.md

File metadata and controls

61 lines (45 loc) · 1.45 KB

Dialogs

This folder contains dialogs examples.

  • AboutBox shows how to create an about box with QMessageBox.
  • ColorDialog shows how to create a colord dialog with QColorDalog.
  • FolderBrowserDialog shows how to create a folder browser dialog with QFileDialog.
  • FontDialog shows how to create a font dialog with QFontDialog.
  • InputDialog shows how to create an input dialog with QInputDialog.
  • MessageBox shows how to create a message box with QMessageBox.
  • OpenFileDialog shows how to create an open file dialog with QFileDialog.
  • SaveFileDialog shows how to create an save file dialog with QFileDialog.

Generate and build

Qt Creator

To build these projects, open Dialogs.pro file with Qt Creator.

CMake

To build this project, open "Terminal" and type following lines:

Set CMAKE_PREFIX_PATH with Qt6 install path.

Windows :

mkdir build
cd build
cmake ..
start ./Dialogs.sln

macOS :

mkdir build
cd build
cmake .. -G "Xcode"
open ./Dialogs.xcodeproj

Linux with Code::Blocks :

mkdir build
cd build
cmake .. -G "CodeBlocks - Unix Makefiles"
xdg-open ./Dialogs.cbp > /dev/null 2>&1

Linux :

mkdir build
cd build
cmake .. 
cmake --build . --config Debug
./AnyProject