Search
 
SCRIPT & CODE EXAMPLE
 

CPP

qt popup window

/** 
 * You can use a QMessageBox like this:
 * int output = QMessageBox::icon(this, tr("Title"), tr("content"),
 *							  QMessageBox::button, QMessageBox::defaultButton);
 */
//for example :
int ret = QMessageBox::warning(this, tr("My Application"),
                               tr("The document has been modified.
"
                                  "Do you want to save your changes?"),
                               QMessageBox::Save | QMessageBox::Discard
                               | QMessageBox::Cancel,
                               QMessageBox::Save);
Comment

PREVIOUS NEXT
Code Example
Cpp :: how to add numbers in c++ 
Cpp :: calling struct to a struct c++ 
Cpp :: C++ convert integer to digits, as vector 
Cpp :: include spaces while reading strings in cpp 
Cpp :: how to read a comma delimited file into an array c++ 
Cpp :: c++ merge sort 
Cpp :: c++ loop through string 
Cpp :: vector to string c++ 
Cpp :: maximum int c++ 
Cpp :: srand() c++ 
Cpp :: how to iterate from second element in map c++ 
Cpp :: how to convert int to std::string 
Cpp :: c++ sort vector 
Cpp :: c++ cin operator 
Cpp :: c++ check if vector is sorted 
Cpp :: do while loop c++ loops continuously 
Cpp :: min heap and max heap using priority queue 
Cpp :: c++ multidimensional vector 
Cpp :: c++ enum 
Cpp :: c++ first letter of string 
Cpp :: set was not declared in this scope 
Cpp :: c++ iterate over vector of pointers 
Cpp :: functors in c++ 
Cpp :: c++ split string by several space 
Cpp :: time of a loop in c++ 
Cpp :: who to include a library c++ 
Cpp :: how to sort vector of struct in c++ 
Cpp :: conditional operator in c++ 
Cpp :: how to add external library in clion 
Cpp :: Sort html elements in Jquery on condition 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =