|
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 23:47:25 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #9, bug #53443 (project octave): Here's an example of what I mean. This discussion https://stackoverflow.com/questions/3887064/qvariant-to-qobject suggests a two-stage process of first converting to QObject * and then convert that QObject * to QWidget *. No compiler warning, but again the pointer value comes out zero: >> x = magic(5); >> openvar x; >> pobj: 0 pobj: 0 pobj: 0 pobj: 0 pobj: 0 Here's where I use the C-style cast (i.e., the Warning scenario): >> x = magic(5); >> openvar x; >> pobj: 0x2442d70 pobj: 0x1f5ff80 pobj: 0x1c87890 pobj: 0x2247c70 FOUND THE WINNER _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?53443> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |