[Interest] QTabWidget/QTabBar allowing user to edit tab names

Bo Thorsen bo at fioniasoftware.dk
Thu Jun 28 08:06:21 CEST 2012


Den 27-06-2012 23:02, Carl Schumann skrev:
> Qt community.
>
> I would like to allow the user to edit tab names in my application,
> e.g., by right-clicking and then being given a text field to enter the
> new name.   How would this best be done please?  Thanks for any help.

You need to catch the right click event. You can do this by subclassing 
QTabBar or by an event filter.

Bo Thorsen,
Fionia Software.

-- 

Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk





More information about the Interest mailing list