English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have requirement for making the text visible in some area.
The text is foler path. But if text increases the space is not available for that. So I want to place dots in between the path string.

ex:
E:\backup\My Share\MATERIAL\vc++books\QtProgramming\earthweb\site_earthweb\area_earthweb

I want to show this as
E:\backup\My Share\...\area_earthweb

I am using C++ and Qt. The path is QString or QLabel.

I did manually by caluclating every thing to put dots in between, but I want to know whether is there any other way to do that.

2007-06-08 01:06:02 · 1 answers · asked by Bhupal 1 in Computers & Internet Programming & Design

1 answers

I haven't used the QT API before, but couldn't you use something like the QScrollArea class instead?

That way, they'd be able to see the whole path.
Otherwise, do what you said ... make sure that the text would be visible within the control's boundaries programmatically.

2007-06-08 07:30:32 · answer #1 · answered by Chris C 7 · 0 0

fedest.com, questions and answers