i have started my basics of Qt, in one my book,
my questio is :
how do i write a program that ask user to enter a number, and then checks weather the number is prime or not.it should use a QInputDialog to get number from the user and QMessage to display the result.
i have created my projects, below is my main.cpp:
#include<QApplication>
#include<QMessageBox>
#include<QInputDialog>
int main( int argc, char **argv )
{
QApplication app(argc, argv);
return 0;
}
and below is .pro
SOURCES += \
Question1.cpp
thank you
Bookmarks