Seems like BrightnessContrast instance is an invalid pointer.
I import mainwindow into BrightnessContrast and declare:
This right?Qt Code:
MainWindow respond; respond.brightnessProcessing(value);To copy to clipboard, switch view to plain text mode
Last edited by bachkimfly; 6th October 2013 at 21:08.
I posted backtrace wrong, I editted in #7
Could you explain why you did the thing Chris pointed out a couple of posts ago -- made MainWindow a member variable of a QDialog subclass?
Can you give me a few link? I not yet reat it.
------------------------------------
I'm trying "made MainWindow a member variable of a QDialog subclass"
Last edited by bachkimfly; 6th October 2013 at 22:57.
If don't made MainWindow a member variable of a QDialog, how to can executable event in QDialog. So what is your idea?
I want to catch event slider value changed, but brightness processing function which at MainWindow, if don't made MainWindow as a member variable of a BrightnessContrast dialog, i dont know to executable event slider value changed. your idea!
P/s: now, it's 5:22 AM, a tonight don't sleep, i want to go to sleep
Alright! I need have to initialize object of MainWindow class, right?. I asked in #9.
So what is I can understand for "made MainWindow a member variable of a QDialog subclass". Patently, I misconstrued.
I don't ignore, I answered by the question "I need have to initialize object of MainWindow class, right?". That means I don't have an instance of the main window which launched the dialog and I understand the difference between a class and an instance of a class. I think so.
But I feel we are going around.
Bookmarks