octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53836] Clicking a QDockWidget tab in a stack


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #53836] Clicking a QDockWidget tab in a stack does not activate the associated widget
Date: Fri, 11 May 2018 19:55:16 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #4, bug #53836 (project octave):

It certainly would seem that way, but I think I've found a way that doesn't
require the tabData information (see attached).  It's a bit kludgy in the
sense that


+              tbar->setCurrentIndex ((index + 1) % tbar->count ());
+              tbar->setCurrentIndex (index);


i.e., selecting some other tab and then going back to the current tab, appears
to grab the focus.  Otherwise, I can't think of any way of causing a focus
without knowing that tabData because internally the QMainWindow keeps an
associated list

info->item_list.at(i)

in which info is a structure holding the list and the info->tabBar.  I suppose
that since main_window is inheriting QMainWindow we might be able to access
some of the internal variables, but I'd rather than do that and if they are
private then they are not accessible.

(file #44143)
    _______________________________________________________

Additional Item Attachment:

File name: octave-gui_qtabbar_focus-djs2018may11.patch Size:4 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53836>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]