Qt4-preview-feedback Archive, March 2007
Context menus in QTabBar?
Message 1 in thread
Hi,
What's the best way to set a context menu in
a tab within a QTabBar? I don't see a method
for that in 4.3.
Do you have to filter context menu events, then
figure out which tab is under the mouse with
QTabBar::tabRect()? It seems like a tabContextMenu()
method would be more to the point.
Thanks,
Joe Newman
Synopsys, Inc.
To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx
Message 2 in thread
Joe Newman wrote:
> What's the best way to set a context menu in
> a tab within a QTabBar? I don't see a method
> for that in 4.3.
Hi, Joe. 4.3 provides QTabBar::tabAt(), which returns an index for a
position. Beyond that, we don't have any automated process for creating a
context menu. If you want to post this as a suggestion, you can use our
public bugtracker:
http://www.trolltech.com/support/support/bugreport-form
Andreas
--
[ signature omitted ]