Results 1 to 6 of 6

Thread: SetTaborder

  1. #1
    Join Date
    Feb 2008
    Posts
    47
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Post SetTaborder

    hi,
    I have 2 problems in my code.


    1.I have tried setting the tab order for my lineedit and radiobuttons through designer as well as coding.But the taborder which i set for radiobuttons is not working.After it moves from lineedit to the first radiobutton.after it reaches the radiobutton no focus is there for the radio buttons.


    2.I have a toolbutton on which i have placed a icon.
    When i execute bithe are not visible in the screen.

    Plz help???

  2. #2
    Join Date
    Aug 2006
    Location
    Bangalore,India
    Posts
    419
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    37
    Thanked 53 Times in 40 Posts

    Default Re: SetTaborder

    Quote Originally Posted by sonuani View Post
    hi,
    I have 2 problems in my code.


    1.I have tried setting the tab order for my lineedit and radiobuttons through designer as well as coding.But the taborder which i set for radiobuttons is not working.After it moves from lineedit to the first radiobutton.after it reaches the radiobutton no focus is there for the radio buttons.


    2.I have a toolbutton on which i have placed a icon.
    When i execute bithe are not visible in the screen.

    Plz help???
    1) Set the autoexclusive property of both the radio buttons to false.

    2) Can you provide more info ? Is it shown in the preview?
    The biggest difference between time and space is that you can't reuse time.
    -- Merrick Furst

  3. #3
    Join Date
    Feb 2008
    Posts
    47
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Post Re: SetTaborder

    I set the autoexclusive to false,still the radiobuttons are not getting the focus.
    .
    The toolbutton on which i have placed a icon is shown in the preview.But its not visible during execution.
    This is the code i am having ...

    Qt Code:
    1. <widget class="QToolButton" name="LeftButton" >
    2. <property name="geometry" >
    3. <rect>
    4. <x>330</x>
    5. <y>250</y>
    6. <width>39</width>
    7. <height>30</height>
    8. </rect>
    9. </property>
    10. <property name="focusPolicy" >
    11. <enum>Qt::NoFocus</enum>
    12. </property>
    13. <property name="text" >
    14. <string>...</string>
    15. </property>
    16. <property name="icon" >
    17. <iconset resource="project.qrc" >:/new/prefix1/right.png</iconset>
    18. </property>
    19. <property name="iconSize" >
    20. <size>
    21. <width>39</width>
    22. <height>30</height>
    23. </size>
    24. </property>
    25. <property name="autoRaise" >
    26. <bool>true</bool>
    27. </property>
    28. </widget>
    To copy to clipboard, switch view to plain text mode 
    Last edited by jpn; 25th February 2008 at 10:22. Reason: missing [code] tags

  4. #4
    Join Date
    Aug 2006
    Location
    Bangalore,India
    Posts
    419
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    37
    Thanked 53 Times in 40 Posts

    Default Re: SetTaborder

    Quote Originally Posted by sonuani View Post
    I set the autoexclusive to false,still the radiobuttons are not getting the focus.
    .
    I managed to get it with radiobutton's autoExclusive property disabled in designer in qt4.3.1 in linux. Probably you have the radio buttons in a QButtonGroup with setExclusive property true.
    The biggest difference between time and space is that you can't reuse time.
    -- Merrick Furst

  5. #5
    Join Date
    Feb 2008
    Posts
    47
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Post Re: SetTaborder

    No i am not using QButtonGroup..

  6. #6
    Join Date
    Aug 2006
    Location
    Bangalore,India
    Posts
    419
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    37
    Thanked 53 Times in 40 Posts

    Default Re: SetTaborder

    I might sound stupid, but did you set the autoExclusive property false for all the radio buttons you want to use ?
    The biggest difference between time and space is that you can't reuse time.
    -- Merrick Furst

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.