Results 1 to 19 of 19

Thread: How to fix the boundary..??

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Posts
    29
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows
    Thanks
    6

    Default Re: How to fix the boundary..??

    THanks sir,

    I'll try it and then reply u sir

    I want to add new icons to existing tool bar.

    Lets say i have added fileNew, fileOpen, fileSave by default; Now i want to add editCut, editCopy and so on. Can i do this with the help of UI. If so how..??
    Last edited by deepusrp; 7th May 2007 at 06:47. Reason: updated contents

  2. #2
    Join Date
    Sep 2006
    Posts
    339
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    15
    Thanked 21 Times in 16 Posts

    Default Re: How to fix the boundary..??

    Quote Originally Posted by deepusrp View Post
    THanks sir,

    I'll try it and then reply u sir

    I want to add new icons to existing tool bar.

    Lets say i have added fileNew, fileOpen, fileSave by default; Now i want to add editCut, editCopy and so on. Can i do this with the help of UI. If so how..??
    Try this
    http://doc.trolltech.com/4.2/designe...inwindows.html

  3. The following user says thank you to vermarajeev for this useful post:

    deepusrp (7th May 2007)

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

    Default Re: How to fix the boundary..??

    Well, how did you add your existing toolbar items in the first place?
    Could wee see the code?

  5. #4
    Join Date
    Jan 2007
    Posts
    29
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows
    Thanks
    6

    Default Re: How to fix the boundary..??

    I got the Initial toolbar when i first started my new project using the default dialog.

    which file do u need...??

    Thanks

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

    Default Re: How to fix the boundary..??

    The one in which you add the toolbar items .
    And the UI file.

    regards

  7. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: How to fix the boundary..??

    Quote Originally Posted by marcel View Post
    1. Use setFixedSize( sizeHint() ), or layout()->setSizeConstraint( QLayout::SetFixedSize ) ( but this only if you have a valid layout set in your main window ).
    Quote Originally Posted by vermarajeev View Post
    Guys, he is using Qt3 and not Qt4 so stop giving him hints related to Qt4

    Quote Originally Posted by deepusrp View Post
    1. I want to fix up the boundary of my application(outer form) so that no one can change the horizontal or vertical size. How can i do that.
    Set the resize mode of the layout to QLayout::Fixed (it can be done from within Designer (although I'm not sure you can do that for QMainWindow) or using hand written code).

    2. I have used the default dialog while creating my project, it gives option to have the toolbar item. At that time i have coosen only few items. Can i add some more toolbar item. If so how. (I dont want to redo the entire design now)
    Did you use Designer for that? If so, then reopen the form and drag actions from the action editor to the toolbar where you can drop them.

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

    Default Re: How to fix the boundary..??

    Guys, he is using Qt3 and not Qt4 so stop giving him hints related to Qt4
    I guess I missed that little detail...

  9. #8
    Join Date
    Sep 2006
    Posts
    339
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    15
    Thanked 21 Times in 16 Posts

    Default Re: How to fix the boundary..??

    Guys, he is using Qt3 and not Qt4 so stop giving him hints related to Qt4
    Sorry, I didnt see that

Similar Threads

  1. Replies: 0
    Last Post: 2nd May 2007, 10:53

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.