Results 1 to 3 of 3

Thread: class QHBoxLayout

  1. #1
    Join Date
    Mar 2008
    Posts
    68
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default class QHBoxLayout

    hi i have downloaded few applications from internet and tried compiling it...
    but during compilation i get the following error...!



    Qt Code:
    1. g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.2.2/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.2.2/include/QtCore -I/usr/local/Trolltech/Qt-4.2.2/include/QtCore -I/usr/local/Trolltech/Qt-4.2.2/include/QtGui -I/usr/local/Trolltech/Qt-4.2.2/include/QtGui -I/usr/local/Trolltech/Qt-4.2.2/include -Ibuild -Ibuild -o build/main.o src/main.cpp
    2. In file included from src/qtgain.h:23,
    3. from src/main.cpp:20:
    4. build/ui_qtgain.h: In member function `void Ui_QtGainClass::setupUi(QMainWindow*)':
    5. build/ui_qtgain.h:81: error: 'class QGridLayout' has no member named 'setLeftMargin'
    6. build/ui_qtgain.h:82: error: 'class QGridLayout' has no member named 'setTopMargin'
    7. build/ui_qtgain.h:83: error: 'class QGridLayout' has no member named 'setRightMargin'
    8. build/ui_qtgain.h:84: error: 'class QGridLayout' has no member named 'setBottomMargin'
    9. build/ui_qtgain.h:85: error: 'class QGridLayout' has no member named 'setHorizontalSpacing'
    10. build/ui_qtgain.h:86: error: 'class QGridLayout' has no member named 'setVerticalSpacing'
    11. build/ui_qtgain.h:153: error: 'class QGridLayout' has no member named 'setLeftMargin'
    12. build/ui_qtgain.h:154: error: 'class QGridLayout' has no member named 'setTopMargin'
    13. build/ui_qtgain.h:155: error: 'class QGridLayout' has no member named 'setRightMargin'
    14. build/ui_qtgain.h:156: error: 'class QGridLayout' has no member named 'setBottomMargin'
    15. build/ui_qtgain.h:157: error: 'class QGridLayout' has no member named 'setHorizontalSpacing'
    16. build/ui_qtgain.h:158: error: 'class QGridLayout' has no member named 'setVerticalSpacing'
    17. build/ui_qtgain.h:272: error: 'class QHBoxLayout' has no member named 'setLeftMargin'
    18. build/ui_qtgain.h:273: error: 'class QHBoxLayout' has no member named 'setTopMargin'
    19. build/ui_qtgain.h:274: error: 'class QHBoxLayout' has no member named 'setRightMargin'
    20. build/ui_qtgain.h:275: error: 'class QHBoxLayout' has no member named 'setBottomMargin'
    21. make: *** [build/main.o] Error 1
    To copy to clipboard, switch view to plain text mode 

    the application i downloaded is from the following link.
    Qt Code:
    1. http://www.qt-apps.org/content/show.php/QtGain?content=56842
    To copy to clipboard, switch view to plain text mode 
    any of u know how to fix this..

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: class QHBoxLayout

    Works fine for me with Qt4.3.4

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: class QHBoxLayout

    Indeed, those are new members introduced in Qt 4.3 so you can't compile with Qt-4.2.2.
    J-P Nurmi

Similar Threads

  1. Edyuk : fully-featured, highly flexible and free cross-platform IDE
    By fullmetalcoder in forum Qt-based Software
    Replies: 169
    Last Post: 20th July 2009, 12:42
  2. How to use Signal through direct connection
    By santosh.kumar in forum Qt Programming
    Replies: 1
    Last Post: 14th December 2007, 08:07
  3. Creating object of other class in Run() method
    By santosh.kumar in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2007, 16:05
  4. Replies: 2
    Last Post: 16th March 2007, 10:04
  5. Replies: 2
    Last Post: 4th May 2006, 20:17

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.