-
-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to use scroll buttons in QTabWidgets created by RViz #1148
Comments
I can't find the code that manages that part. I searched for QTabWidget but it's only returning one results which is not what I'm looking for ( Which part of the RViz code manages the stacking/moving of whole RViz panels? |
@VictorLamoine I believe it is just done by rviz/src/rviz/visualization_frame.h Line 71 in fa59398
|
Thanks @wjwwood, it helped me a lot because I did not know the "dock widget" names. I made a test and this is exactly what I wanted: Default behaviourDon't elide text in QTabBarNow I need to find a place/signal to put this code (each time a panel is added or moved); the code itself is very straightforward: |
Diff without whitespace changes: https://github.com/ros-visualization/rviz/compare/kinetic-devel...VictorLamoine:QTabWidget_elide?w=1. |
If you stack a lot of widgets inside RViz, the labels becomes hard to read like this:
Solutions:
Last solution is by far the best in my opinion.
I think one solution is to subclass the tab bar and add a right click action to choose between scroll buttons, no scroll buttons.
The text was updated successfully, but these errors were encountered: