Results 1 to 10 of 10

Thread: How to use the Qt3 Support members in Qt4?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to use the Qt3 Support members in Qt4?

    you can set Size Policy of spinBox to Fixed.

  2. #2
    Join Date
    Dec 2006
    Location
    Bangalore, India
    Posts
    38
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to use the Qt3 Support members in Qt4?

    I tried the following method but I'm getting error( 'QSizePolicy::QSizePolicy' : cannot access private member declared in class 'QSizePolicy' ).

    spnBx->setSizePolicy(QSizePolicy::Fixed)

    How to get this property..???
    WINNERS DON`T D DIFFERENT THINGS THEY D THINGS differently.

  3. #3
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to use the Qt3 Support members in Qt4?

    use this use
    Qt Code:
    1. void QWidget::setSizePolicy ( QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical )
    To copy to clipboard, switch view to plain text mode 

  4. #4
    Join Date
    Dec 2006
    Location
    Bangalore, India
    Posts
    38
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to use the Qt3 Support members in Qt4?

    If you done mine, could you please explain me little more with an example..?
    WINNERS DON`T D DIFFERENT THINGS THEY D THINGS differently.

  5. #5
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to use the Qt3 Support members in Qt4?

    read this
    http://doc.trolltech.com/4.4/qwidget...izePolicy-prop
    in your case, your code should look like
    Qt Code:
    1. spinBox->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
    To copy to clipboard, switch view to plain text mode 

  6. #6
    Join Date
    Dec 2006
    Location
    Bangalore, India
    Posts
    38
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to use the Qt3 Support members in Qt4?

    Yup I got it.................................

    Thanks Spirit,
    WINNERS DON`T D DIFFERENT THINGS THEY D THINGS differently.

Similar Threads

  1. Installation Problem
    By QbelcorT in forum Installation and Deployment
    Replies: 4
    Last Post: 22nd April 2010, 09:04
  2. Qt-4.4.0 installation error in linux
    By babu198649 in forum Installation and Deployment
    Replies: 4
    Last Post: 27th May 2008, 14:35
  3. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 09:02
  4. Qt 4.4.0 make problem
    By MarkoSan in forum Installation and Deployment
    Replies: 24
    Last Post: 22nd January 2008, 17:58
  5. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21

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.