PDA

View Full Version : creating a global instance



skatakam
9th February 2006, 15:03
Hi all,
iam new to this forum..

iam quite new to Qt environment
i have a problem in qt, i want to create a global instance which can be accessible to all the rest of the forms in the project.

in detail..
iam developing a GUI for the existing library which is developed by my professor which is written in c++,
i want to create an instance of the class(from existing library) in the main form and that should be accessed in all the forms of the rest of the project.
can any one please give a solution for this....

sarkar

jacek
9th February 2006, 15:12
Maybe singleton pattern (http://www.qtcentre.org/forum/showthread.php?t=465) will help?

skatakam
9th February 2006, 15:23
Hi all,
iam new to this forum..

iam quite new to Qt environment
i have a problem in qt, i want to create a global instance of a class which can be accessible to all the rest of the forms in the project.
can any one please give a solution for this....

sarkar

yogeshm02
9th February 2006, 15:31
http://www.qtcentre.org/forum/showthread.php?t=465


http://www.qtcentre.org/forum/showthread.php?t=163

zlatko
9th February 2006, 15:39
just friendly suggestion :
before start learn qt read c++ fundamental topics;)

jacek
9th February 2006, 16:00
Please, don't ask the same question twice in different forums.

probine
24th February 2006, 17:26
What is the library type given to you by your professor:

.dll ?
.so ?