Results 1 to 4 of 4

Thread: action

  1. #1
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default action

    Hi,
    I created a groupbox with 3 toggle buttons that call 3 different SLOT of MainForm Class. Is it more correct create 3 actions? Furthermore, I'd like
    make buttons exclusive from Designer. Is it possible this using groupbox? (it's possible with actionGroup...)
    Thanks
    Regards

  2. #2
    Join Date
    Jan 2006
    Location
    N.B. Canada
    Posts
    47
    Thanked 8 Times in 7 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: action

    I think QButtonGroup is what you want.
    The march of progress:
    C:
    printf("%10.2f", x);
    C++:
    cout << setw(10) << setprecision(2) << showpoint << x;
    Java:
    java.text.NumberFormat formatter = java.text.NumberFormat.getNumberInstance();
    formatter.setMinimumFractionDigits(2);
    formatter.setMaximumFractionDigits(2);
    String s = formatter.format(x);
    for (int i = s.length(); i < 10; i++) System.out.print(' ');
    System.out.print(s);

  3. #3
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: action

    It's ok.
    But if use ButtonGroup and use "exclusive" I must choose one button only and not '0' button. With exclusive, if "yellow" button is clicked for change its status I must click on other buttons; I must change yellow status clicking on the yellow button (with exclusive)...is it possible?
    Regards

  4. #4
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: action

    Sorry, I couldn't get U
    We can't solve problems by using the same kind of thinking we used when we created them

Similar Threads

  1. QTreeView default drag action
    By onamatic in forum Qt Programming
    Replies: 2
    Last Post: 1st March 2010, 08:37
  2. Action shortcut
    By ^NyAw^ in forum Qt Programming
    Replies: 2
    Last Post: 16th June 2008, 16:02
  3. get Text from Popupmenu action
    By raphaelf in forum Newbie
    Replies: 6
    Last Post: 11th October 2006, 16:24
  4. singnal and action
    By mickey in forum Newbie
    Replies: 1
    Last Post: 9th July 2006, 19:15
  5. No action checked in an exclusive action group
    By SkripT in forum Qt Programming
    Replies: 12
    Last Post: 13th February 2006, 07:19

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.