Re: toolTips?
I am not exactly sure what you mean. QActions have toolTips and statusTips. By default, if an action has a tooltip, and if no status tip is defined, the action uses the tool tip text to be displayed in the status bar. You can set a different statusTip text using setStatusTip if you want the text displayed in the statusbar to be different than the action's tooltip text.
If you just want to display some text in the statusbar, well, there are various ways of accomplishing this; but the simlpest is to use one of the QStatusBar::message(...) methods.
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);
Bookmarks