Skip to content
  • 0 Votes
    9 Posts
    857 Views
    JonBJ

    @camtheman99
    That is interesting, thanks to @Christian-Ehrlicher.

  • 0 Votes
    4 Posts
    825 Views
    ODБOïO

    @BzhAx hi,

    @BzhAx said in Save whole context:

    I don't know if this is the best way to do it..

    it works ? do you have errors ?

    You can have your TabButtons in ListModel and use this method :
    https://stackoverflow.com/questions/48730166/how-to-save-and-restore-the-content-of-a-listmodel?rq=1

  • 0 Votes
    10 Posts
    3k Views
    SGaistS

    Did you have any system update happening in between ?

  • 0 Votes
    5 Posts
    1k Views
    mrjjM

    @Lasith
    Oh, thats a classic :)

  • 0 Votes
    5 Posts
    2k Views
    V

    Ignoring the Qt specific aspects of integrating a 3rd party library for just a moment, I would like to ask - are you implicitly or explicitly linking these DLLs into your application?

    Implicitly linking means (in case you don't know) means your code links with a *.lib that makes yours application need the DLL in order to run but also means you don't have to locate the functions you want to use in the DLL when your code runs. This is most likely the way you plan to use these DLLs.

    Explicitly linking means you don't do anything with the DLL until your application starts up - at that point your application code manually loads the DLL into its process space and your application code looks up the actual functions you want to use in the DLL. This is a very flexible way to use DLLs but you're probably not doing this.

  • 0 Votes
    8 Posts
    4k Views
    SGaistS

    Rather than dump in a file, dump in std out and use QProcess to parse/retrieve these information. You also have qgetenv to retrieve environment variables in your software.

  • 0 Votes
    5 Posts
    2k Views
    DuncanD

    Thanks for the help all, Im a noob and realized im working in an IDE like Xcode that makes apps.

    I followed this tutorial for good info:

    https://www.youtube.com/watch?v=6KtOzh0StTc

    Thanks again!!

  • 0 Votes
    10 Posts
    4k Views
    R

    Sure,
    I assume that you know how to use Signals and Slots.

    So I just write the relevant relevant variables, signals and slots.

    Maybe there is a typing error in in, but the principle works.
    Please see the image above to get to know the structure and the goal.

    I hope that this helps.
    Don't wonder about the QThread.... QObject is also fine

    ProcessData.h: class ProcessData : public QThread { Q_OBJECT public: explicit ProcessData(QObject *parent=0); signals: sendPointer(SubProcessing1 *ptr); public slots: void triggerPointerSending() {emit sendPointer(ptrSubPro);} private: SubProcessing1 SubPro; SubProcessing1 *ptrSubPro; }; ProcessData.cpp: ProcessData::ProcessData(QObject *parent) : QThread(parent) { ptrSubPro = &SubPro} GuiDialog.h private: SubProcessing1 *ptrSubProcessing; private slots: void receivePointer(SubProcessing*) {ptrSubProcessing = ptr} MainWindow.h #include “subprocessing.h” private: ProcessData* myProcessedData SubProcessingDialog* mySubProcessingDialog private slots: void DEBUGSLOT(SubProcessing *ptr); MainWindow.cpp MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); mySubProcessingDialog = new SubProcessing(); myProcessedData = new ProcessData(); QObject::connect(myProcessedDate, SIGNAL(sendPointer(SubProcessing1*)),mySubProcessingDialog, SLOT(receivePointer(SubProcessing1*))); myProcessedData.triggerPointerSending(); }
  • 0 Votes
    7 Posts
    7k Views
    R

    @JKSH thank you
    I add

    QMAKE_LFLAGS += -Wl,-rpath /opt/libitems/libx64/

    and it works )))
    Thank you all for your help.