[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using qt dialogs in Octave 4.0.0
From: |
Sergio |
Subject: |
Using qt dialogs in Octave 4.0.0 |
Date: |
Tue, 7 Jul 2015 14:32:22 -0300 |
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
dialog.ui
Description: Text document
dialog.cpp
Description: Text Data
dialog.h
Description: Text Data
ej04.cc
Description: Text document
ui_dialog.h
Description: Text Data
- Using qt dialogs in Octave 4.0.0,
Sergio <=