Results 1 to 4 of 4

Thread: Undefined Reference to Q3VBox

  1. #1
    Join Date
    Feb 2007
    Posts
    32
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Undefined Reference to Q3VBox

    Hi all,
    I am getting the following error :
    undefined reference to `Q3VBox::Q3VBox(QWidget*, char const*, QFlags<Qt::WindowType>)'

    I guess there is some Qt3 library which is not linked, can anyone give the solution to
    link the Qt3 library, or is there any other solution for this?
    Thanks in advance .

  2. #2
    Join Date
    Feb 2007
    Posts
    32
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Undefined Reference to Q3VBox

    Hey thanks all , by including qt3support in my .pro file, the error gone.

  3. #3
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Undefined Reference to Q3VBox

    There is no qt3 lib in qt4. There are support functions instead, integrated in Qt4.
    Make sure you included <Q3VBox>.

    May I ask why are you using support functions? Why don't you use Qt4? Try using QVBoxLayout instead!

  4. #4
    Join Date
    Feb 2007
    Posts
    32
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Undefined Reference to Q3VBox

    Thanks for the information, but since i developed a Qt application in windows, i wanted to test the same in LINUX.

Similar Threads

  1. Compiling error
    By Foobar in forum Newbie
    Replies: 2
    Last Post: 17th March 2007, 23:02
  2. how to correctly compile threads support?
    By srhlefty in forum Installation and Deployment
    Replies: 9
    Last Post: 25th June 2006, 19:15
  3. Strange error while using Q3Canvas
    By Kapil in forum Newbie
    Replies: 13
    Last Post: 15th June 2006, 19:36
  4. undefined reference to fftw libraries
    By kmyadam in forum General Programming
    Replies: 2
    Last Post: 9th March 2006, 01:01
  5. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23:11

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
  •  
Qt is a trademark of The Qt Company.