Results 1 to 3 of 3

Thread: Qt Designer

  1. #1
    Join Date
    Jun 2007
    Posts
    21
    Thanks
    25
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Qt Designer

    Hi,

    Im using Qt3 Designer and when i select the option to list the tab order, blue numbered circles appear to identify the tab order.

    does anyone know if i can remove a widget from being able to be tabbed to.

    i.e. i only want to tab from "OK" to "Cancel" and not the rest of the widgets on my form.

    thanks in advance

    nlev.

  2. #2
    Join Date
    Aug 2007
    Location
    Gorakhpur, India
    Posts
    254
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Qt Designer

    Quote Originally Posted by nleverin View Post
    Hi,

    Im using Qt3 Designer and when i select the option to list the tab order, blue numbered circles appear to identify the tab order.

    does anyone know if i can remove a widget from being able to be tabbed to.

    i.e. i only want to tab from "OK" to "Cancel" and not the rest of the widgets on my form.

    thanks in advance

    nlev.
    Qt Code:
    1. QWidget::setTabOrder(widget, pushButtonOk);
    2. QWidget::setTabOrder(pushButtonOk, pushButtonCancel);
    To copy to clipboard, switch view to plain text mode 
    use this code on constructor.

    or edit tab order of OK with 1 and cancel with 2 & leave the rest of them. Or You can set setDefault property TRUE of OK pushButton.
    Anurag Shukla
    A man who never makes mistake is the man who never does anything! Theodre Rosvelt!

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

    nleverin (25th January 2008)

  4. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt Designer

    You can change the focusPolicy property.

    http://doc.trolltech.com/3.3/qwidget...cusPolicy-enum

  5. The following user says thank you to jacek for this useful post:

    nleverin (25th January 2008)

Similar Threads

  1. centralWidget and QDockWidgets in designer
    By momesana in forum Qt Tools
    Replies: 1
    Last Post: 18th December 2006, 12:56
  2. Replies: 13
    Last Post: 15th December 2006, 12:52
  3. Designer crashes when selecting some widgets
    By gwendal in forum Qt Tools
    Replies: 4
    Last Post: 21st July 2006, 14:18
  4. Adding slots in Designer
    By jamos in forum Qt Tools
    Replies: 5
    Last Post: 19th May 2006, 00:28
  5. Arthur Plugins demos and designer
    By antonio.r.tome in forum Installation and Deployment
    Replies: 4
    Last Post: 21st March 2006, 15:01

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.