PDA

View Full Version : How to Create lib in Qt.



shyam prasad
23rd January 2007, 13:42
hi

pls tell me Additional lib files in XCode.

I AM USING QT 4.2.1 on Mac Os.

shyam prasad
24th January 2007, 05:08
hi

Pls help me ,
1. How to Create lib in Qt.
2. How to add that lib in XCode.

I am Using Qt4.2.1 ,
OS used : Mac & Linux Fedora Core 2.

I am a beginner , pls give me with a small example.

Thanks..

e8johan
24th January 2007, 06:48
With Qt you can use a "TEMPLATE = lib" line in your pro-file that you pass to qmake.

jacek
24th January 2007, 07:53
Please, don't ask the same question in more than one thread.

yeroosmiler
14th August 2012, 09:35
new to Qt but i am so curious to know something about
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

spirit
14th August 2012, 09:38
new to Qt but i am so curious to know something about
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
Come on, stop posting your question in each thread! Instead of doing this try to read Qt Assistant or read books about Qt!

StrikeByte
14th August 2012, 10:02
yeroosmiler
This looks more like a homework question, go learn first then ask questions (don't ask other people to create your applications)