Results 1 to 2 of 2

Thread: What's the best way....

  1. #1
    Join Date
    Jan 2006
    Posts
    105
    Thanks
    38
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default What's the best way....

    Hi everybody, I don't have much experinece programming gui interfaces and now I've got a simple question: I have a tab widget with 6 windows (a widget with a list of icons on it). All the windows of the tab are from the same class. For each window, the user can do 4 actions pushing a button for each task. The question is wehre should I put this buttons, inside the window or outside the tab widget so the buttons acts with the current window of the tab that the user is viewing. This second solution could be more complex (I should need aditional signals on the window to know when the buttons could be enabled or disabled) but also could be more 'elegant', I dont' know, what do you think?
    Last edited by Dark_Tower; 19th March 2006 at 21:10.

  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: What's the best way....

    I am not sure if I understand correctly, a screenshot, or a picture would be helpful. Basically, I think the general rule of thumb is that if the action the button performs is only relevant to the tab and its contents it should be in the actual tab. If pressing the button works / is relevant to / effects the whole dialog or window or app, than it should be outside of the tab. I hope I understood correctly.

    Bojan
    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. The following user says thank you to Bojan for this useful post:

    Dark_Tower (20th March 2006)

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.