Qt-interest Archive, December 2007
dl including ui filel and using in another application
Message 1 in thread
Hi all,
I have created a custom widget with qt designer . It created .ui file and
its header file. I extend my own class from this user control class.I
created dll including this control.
Problem is here: When I want to use created widget class in this dll in
another project it gives QMetaobject error while compiling . It gives error
:
-- undefined reference to MyWidget::staticMetaObject()
If I build static library it isn't matter.But i want to build dll and use
it.
What can I do for this ?
Thanks in advance
Ramazan
--
[ signature omitted ]
Message 2 in thread
Hello,
you probably should show some example code if it's not already solved :)
Greetings,
Christoph
Ramazan schrieb:
> Hi all,
> I have created a custom widget with qt designer . It created .ui file and
> its header file. I extend my own class from this user control class.I
> created dll including this control.
> Problem is here: When I want to use created widget class in this dll in
> another project it gives QMetaobject error while compiling . It gives error
> :
> -- undefined reference to MyWidget::staticMetaObject()
>
> If I build static library it isn't matter.But i want to build dll and use
> it.
> What can I do for this ?
> Thanks in advance
> Ramazan
>
>
--
[ signature omitted ]
Message 3 in thread
On Tuesday 18 December 2007 10:26:49 Christoph Keller wrote:
> Hello,
>
> > Hi all,
> > I have created a custom widget with qt designer . It created .ui file and
> > its header file. I extend my own class from this user control class.I
> > created dll including this control.
> > Problem is here: When I want to use created widget class in this dll in
> > another project it gives QMetaobject error while compiling . It gives
> > error
> >
> > -- undefined reference to MyWidget::staticMetaObject()
> >
> > If I build static library it isn't matter.But i want to build dll and use
> > it.
> > What can I do for this ?
> > Thanks in advance
> > Ramazan
Do you use the declspec(_dllexport) on your class?
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body. List archive and information:
> http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]
Message 4 in thread
hello,
have an issue with the "QFileSystemWatcher".
The aim for this object is to notify for changes in the specified files.
It works when I add something to the files, and I can get notifications.
the problem is that when I'm notified, in the corresponding slot I open
that file to load its content and close it - this is done using
"QFile". At this point I get get notified again(because I did a
open/close on the file).
How to escape "false" notifications ? how to get them only when the file
was changed ?
thanks
--
[ signature omitted ]
Message 5 in thread
On Wed, 19 Dec 2007 00:57:38 +0200, Yong Taro <yanicher@xxxxxxxxx> wrote:
> hello,
> have an issue with the "QFileSystemWatcher".
>
> The aim for this object is to notify for changes in the specified files.
> It works when I add something to the files, and I can get notifications.
>
> the problem is that when I'm notified, in the corresponding slot I open
> that file to load its content and close it - this is done using
> "QFile". At this point I get get notified again(because I did a
> open/close on the file).
>
> How to escape "false" notifications ? how to get them only when the file
> was changed ?
AFAIK you change a file when you open it. The atime-flag (access-time) I think it is that is set to "now()".
> thanks
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]
Message 6 in thread
I have solved my problem . It was declspec(_dllexport) problem. I was using
declspec(_dllexport) for all class.Now im using for only
constructor,desctructors and for other methods.
Thanks.
Ramazan
"Eric Methorst" <arnalon@xxxxxxxxx>, haber iletisinde sunlari
yazdi:200712182153.30374.arnalon@xxxxxxxxxxxx
> On Tuesday 18 December 2007 10:26:49 Christoph Keller wrote:
>> Hello,
>>
>> > Hi all,
>> > I have created a custom widget with qt designer . It created .ui file
>> > and
>> > its header file. I extend my own class from this user control class.I
>> > created dll including this control.
>> > Problem is here: When I want to use created widget class in this dll in
>> > another project it gives QMetaobject error while compiling . It gives
>> > error
>> >
>> > -- undefined reference to MyWidget::staticMetaObject()
>> >
>> > If I build static library it isn't matter.But i want to build dll and
>> > use
>> > it.
>> > What can I do for this ?
>> > Thanks in advance
>> > Ramazan
> Do you use the declspec(_dllexport) on your class?
>>
>> --
>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
>> "unsubscribe" in the subject or the body. List archive and information:
>> http://lists.trolltech.com/qt-interest/
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]