954,499 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Qt programming

what does the following code means in Qt programming..

QDialogButtonBox::Ok

why are we using QDialogButtonBox:: .

C++ programmer
Light Poster
28 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

QDialogButtonBox::Ok looks like an enum value defined in QDialogButtonBox class.

gerard4143
Nearly a Posting Maven
2,272 posts since Jan 2008
Reputation Points: 512
Solved Threads: 387
 

I know this but i am unable to understand this syntax QDialogButtonBox :: , what is this for?

C++ programmer
Light Poster
28 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 
gerard4143
Nearly a Posting Maven
2,272 posts since Jan 2008
Reputation Points: 512
Solved Threads: 387
 

+1 Gerard. I have designed a dialog in Qt designer and I want to use the name of each child widget for some coding in cpp file. But the names I have given to buttons etc in Qt designer are not working as pointer. What do I do?

C++ programmer
Light Poster
28 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

Basically what QDialogButtonBox::Ok is is a static member of the QDialogButtonBox class defined in the QT libraries... another example is the QMessageBox... please see usage below:

QMessageBox::information(0, "Title bar text", "Message text", "", "")


This will give you basic message box (with information image, can also use critical for errors etc) and update a user on a successful run where there is no other output...

A QDialogButtonBox is where you want to have the user give feedback ("Proceed?")

If you have QT Designer you should also have QT Assistant... you should be able to see the syntax and alternatives there

Eagletalon
Junior Poster
113 posts since Mar 2011
Reputation Points: 47
Solved Threads: 13
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: