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: Sun, 8 Apr 2018 22:59:16 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

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

As I explained, I tried.  Unless I missed some Qt function, there seems to be
no Qt function for identifying the tab contents other than that tabData(i)
which is a QVariant.  That surprises me that there is no such routine.  In any
case, one has to use the QVariant functions that will allow translating to the
desired format.  Every conversion type I tried that seemed a reasonable choice
for comparison would produce a translated value of 0.  If anyone has an idea
of how to convert the tabData() and QWidget pointer in either direction or to
a mutually-convertable type, I'm listening.

Here's the documentation that might be helpful:

http://doc.qt.io/qt-5/qvariant.html#type

"Also note that the types void*, long, short, unsigned long, unsigned short,
unsigned char, float, QObject*, and QWidget* are represented in
QMetaType::Type but not in QVariant::Type, and they can be returned by this
function. However, they are considered to be user defined types when tested
against QVariant::Type."

    _______________________________________________________

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]