[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using qt dialogs in Octave 4.0.0
From: |
Tatsuro MATSUOKA |
Subject: |
Re: Using qt dialogs in Octave 4.0.0 |
Date: |
Wed, 8 Jul 2015 12:29:13 +0900 (JST) |
----- Original Message -----
>From: Sergio
>To: help-octave
>Date: 2015/7/8, Wed 02:32
>Subject: Using qt dialogs in Octave 4.0.0
>
>
>Hi,
>I'm using Octave 4.0.0 under MS Windows 7 (64 bits), and I'm building a GUI
>based in Qt for some parameters of m script. Basically I'm using Qt Creator to
>build a dialog skeleton, then use uic command (from Octave binary
>distribution) to make the user interface header, and compile the dialog
>sources. Then use the header and the object file to make the call from a oct
>file (the files are attached).
>The build process it's ok, but when call the oct file, some times, the
>function has erroneous behavior. The first problem is always the new window is
>showed under the main window of Octave.
>Always run ok the first time, but when I close the window and call the oct
>file again the dialog is shown with some graphics differences (the buttons are
>flat or the line edits borders is hidden as example). Invoking the oct file
>repeatedly the octave gui crash and close all windows.
>I think the problem is because the second window don't have reference to the
>handle of the main window of the GUI. In qt, this is simplement taken from
>"this" keyword when a second dialog is created from the main window. But in
>this escene, with octave and the GUI, how can access the handle the main
>windows from a oct file?
>As final data, I use this secuence in the Octave GUI interface to build the
>oct file:
>
>>> mkoctfile -c -lQtCore4 -lQtGui4 dialog.cpp -o dialog.o
>>> mkoctfile -lQtCore4 -lQtGui4 dialog.o ej04.cc -o ej04.oct
>
>Then call the oct file:
>>> ej04
>
>Thank's a lot for your help.
>
>Sergio
>
I really do know about qt and C++.
But is the below useful for you?
http://octave.org/doxygen/4.0/index.html
http://octave.org/doxygen/4.0/namespaces.html
http://octave.org/doxygen/4.0/annotated.html
http://octave.org/doxygen/4.0/files.html
Tatsuro