Welcome to Qt Centre.
Qt Centre is a community site devoted to programming in C++ using the Qt framework developed by Nokia. Over 90 percent of questions asked here gets answered. If you are looking for information about Qt related issue — register and post your question.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us.
Hi all, I am a novice programmer. I am learning using Qt4.7.0. I am exploring using QInputDialog. I want to remove the cancel button from the default QInputDialog and later make use of the cancel button to exit the application. my statement reads QInputDialog::getInteger(0, "Calculator", "Calculated value", 1, 1,10,1,0,0);
I know I am very late getting to this question, but better late then never...
QInputDialog is one of the pre-made drop-in dialogs. As such it is very hard to access functionality that was not exposed in the API. There are ways to access the cancel button and hide it, but it is not straight forward. It may be easier just to write a new dialog that provides the functionality you need. You could create one quickly in Designer.
Hello guys i am new in programming , i am using Qt4 . I would love to know the basic first before grasping everything at once .In simple terms i would like to be assisted.