Results 1 to 5 of 5

Thread: Is it possible I use QtCore only in my service program on solaris(no-gui)?

  1. #1
    Join Date
    Aug 2008
    Location
    Nanjing, China
    Posts
    66
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Is it possible I use QtCore only in my service program on solaris(no-gui)?

    I find QVariant is a very useful class and I want to use it in non-gui program. I want to include QVariant.h and link to the lib QtCore4. Is that possible?
    Thank you in advance!
    Jerry

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Is it possible I use QtCore only in my service program on solaris(no-gui)?

    QVariant is already in QtCore module.. what is the problem?

    btw the compiler will post error on QVariant.h

    use
    #include <QVariant>
    or
    #include <qvariant.h>

  3. #3
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Is it possible I use QtCore only in my service program on solaris(no-gui)?

    Yes QVariant is part of Qt Core module only.

  4. #4
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Is it possible I use QtCore only in my service program on solaris(no-gui)?

    Bu hu hu..

  5. #5
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Is it possible I use QtCore only in my service program on solaris(no-gui)?

    ro mat .. jyada jawab nahi diya karte..

Similar Threads

  1. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 04:19

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.