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

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

[Octave-bug-tracker] [bug #53443] Variable Editor: openvar VAR should sh


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #53443] Variable Editor: openvar VAR should show the tab on which the variable editor is
Date: Fri, 23 Mar 2018 17:54:35 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #1, bug #53443 (project octave):

Here's a patch, simple in concept but what a bear it is to convert a QVariant
to something that can be compared to a QWidget pointer.  The doc for QVariant
says that a QObject pointer is fine (i.e., QMetaType::QObjectStar), but all
the conversions I've tried fail.  Also, I tried turning the "this" pointer
into a QVariant, which again is supposedly valid, but that too fails.  The
failure going one way or another is always that the value Qt reports is 0. 
I'd guess internally there may be some kind of dynamic_cast involved that
claims the conversion can't be done so sets the value to zero.  qobject_cast<>
complains at compile.  qvariant_cast<> complains at compile.  As it is, the
use of C-cast leaves a warning message...  I'll have to try again next week.

(file #43653)
    _______________________________________________________

Additional Item Attachment:

File name: octave-ve_tab_to_front-djs2018mar23.patch Size:2 KB


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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