[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: qt4 bindings, threads
From:       "=?ISO-8859-1?Q?daniel_=E5kerud?=" <daniel.akerud () gmail ! com>
Date:       2007-12-26 22:17:02
Message-ID: b000da060712261417m6e3cc978ib9edc133e74ec8b5 () mail ! gmail ! com
[Download RAW message or body]


On Dec 26, 2007 11:13 PM, daniel =E5kerud <daniel.akerud@gmail.com> wrote:

> On Dec 26, 2007 10:25 PM, richard.j.dale@gmail.com <
> richard.j.dale@gmail.com> wrote:
>
> > Your version of the Smoke library that QtRuby uses should have the
> > QSocketNotifier class, my version of QtRuby certainly has it. Try
> > using the 'rbqtapi ' tool to find if it is there:
> >
> > $ rbqtapi QSocketNotifier
> >        enum QSocketNotifier::Exception
> >        QSocketNotifier* QSocketNotifier::QSocketNotifier(int,
> > QSocketNotifier::Type)
> >        QSocketNotifier* QSocketNotifier::QSocketNotifier(int,
> > QSocketNotifier::Type, QObject*)
> > ...
> >
> > -- Richard
> >
> > I use the packages in Kubuntu Gutsy Gibbon. rbqtapi doesn't work for me=
:
>
> da@brutus:~$ rbqtapi
> /usr/bin/rbqtapi:11:in `require': no such file to load -- Qt (LoadError)
>         from /usr/bin/rbqtapi:11
> da@brutus:~$
>
> This is the qtruby version:
>
> da@brutus:~$ dpkg -s libqt4-ruby
> Package: libqt4-ruby
> Status: install ok installed
> Priority: optional
> Section: interpreters
> Installed-Size: 56
> Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
> Architecture: all
> Version: 1.4.9-4ubuntu1
> Depends: libqt4-ruby1.8
> Description: ruby bindings for the Qt4 GUI library
>  Smoke-based ruby bindings for Qt4, the Trolltech GUI library.
>  .
>  This is a dependency package to point to the current version
>  of ruby.
> Original-Maintainer: Vincent Fourmond <fourmond@debian.org>
>
> But perhaps i'm missing something fundamental here :-D
>
> /D
>
>

Hmm, I made a link after delving deeper into the error:
sudo ln -s /usr/bin/rbqtapi /usr/bin/rbqt4api

and then it worked, gave me this answer:

da@brutus:~$ rbqt4api QSocketNotifier
        enum QSocketNotifier::Exception
        QSocketNotifier* QSocketNotifier::QSocketNotifier(int,
QSocketNotifier::Type)
        QSocketNotifier* QSocketNotifier::QSocketNotifier(int,
QSocketNotifier::Type, QObject*)
        enum QSocketNotifier::Read
        enum QSocketNotifier::Write
        void QSocketNotifier::activated(int)
        bool QSocketNotifier::event(QEvent*)
        bool QSocketNotifier::isEnabled() const
        const QMetaObject* QSocketNotifier::metaObject() const
        int QSocketNotifier::qt_metacall(QMetaObject::Call, int, void**)
        void QSocketNotifier::setEnabled(bool)
        int QSocketNotifier::socket() const
        static const QMetaObject QSocketNotifier::staticMetaObject()
        static QString QSocketNotifier::tr(const char*)
        static QString QSocketNotifier::tr(const char*, const char*)
        QSocketNotifier::Type QSocketNotifier::type() const
        void QSocketNotifier::~QSocketNotifier()


I don't know what I did wrong previously... I'll definetly update my code
:-D

Thanks for letting me know about the cool utility.

/D


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic