Click here to Skip to main content
15,923,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Accurate interpretation and evaluation of this "or condition": while ( x < 1 || x > 8 ) Pin
Otto Medina26-Jun-21 18:51
Otto Medina26-Jun-21 18:51 
AnswerRe: Accurate interpretation and evaluation of this "or condition": while ( x < 1 || x > 8 ) Pin
Aghast (nj)26-Jun-21 3:13
Aghast (nj)26-Jun-21 3:13 
GeneralRe: Accurate interpretation and evaluation of this "or condition": while ( x < 1 || x > 8 ) Pin
Otto Medina29-Jun-21 2:30
Otto Medina29-Jun-21 2:30 
QuestionMessage Closed Pin
16-Jun-21 3:19
Member 1496877116-Jun-21 3:19 
AnswerRe: How do I access private variable of an object ? Pin
Mircea Neacsu16-Jun-21 3:23
Mircea Neacsu16-Jun-21 3:23 
GeneralMessage Closed Pin
16-Jun-21 5:50
Member 1496877116-Jun-21 5:50 
AnswerRe: How do I access private variable of an object ? Pin
Mircea Neacsu16-Jun-21 6:12
Mircea Neacsu16-Jun-21 6:12 
GeneralRe: How do I access private variable of an object ? Pin
David Crow16-Jun-21 6:37
David Crow16-Jun-21 6:37 
AnswerRe: How do I access private variable of an object ? Pin
Richard MacCutchan16-Jun-21 6:58
mveRichard MacCutchan16-Jun-21 6:58 
AnswerRe: How do I access private variable of an object ? Pin
RedDk16-Jun-21 7:22
RedDk16-Jun-21 7:22 
AnswerRe: How do I access private variable of an object ? Pin
CPallini16-Jun-21 23:27
mveCPallini16-Jun-21 23:27 
GeneralRe: How do I access private variable of an object ? Pin
Richard MacCutchan17-Jun-21 0:35
mveRichard MacCutchan17-Jun-21 0:35 
GeneralRe: How do I access private variable of an object ? Pin
CPallini17-Jun-21 1:32
mveCPallini17-Jun-21 1:32 
GeneralMessage Closed Pin
17-Jun-21 6:36
Member 1496877117-Jun-21 6:36 
GeneralRe: How do I access private variable of an object ? Pin
Richard MacCutchan17-Jun-21 6:40
mveRichard MacCutchan17-Jun-21 6:40 
GeneralRe: How do I access private variable of an object ? Pin
CPallini17-Jun-21 7:43
mveCPallini17-Jun-21 7:43 
AnswerRe: How do I access private variable of an object ? Pin
Magnus Forslund15-Jul-21 2:19
Magnus Forslund15-Jul-21 2:19 
QuestionMessage Closed Pin
15-Jun-21 10:35
Member 1496877115-Jun-21 10:35 
AnswerRe: Pass a function with parameter Pin
Greg Utas15-Jun-21 11:38
professionalGreg Utas15-Jun-21 11:38 
GeneralMessage Closed Pin
15-Jun-21 13:30
Member 1496877115-Jun-21 13:30 
GeneralRe: Pass a function with parameter Pin
Greg Utas15-Jun-21 13:39
professionalGreg Utas15-Jun-21 13:39 
GeneralMessage Closed Pin
15-Jun-21 15:23
Member 1496877115-Jun-21 15:23 
GeneralRe: Pass a function with parameter Pin
Greg Utas16-Jun-21 0:22
professionalGreg Utas16-Jun-21 0:22 
I haven't used Qt, so I don't know if I can help. It sounds like a widget is an object, but you're only passing functions and parameters. Would passing an object help?

It's even possible to pass a class's member function[^] as a parameter. I've not used this capability, so you'd have to read up on it if that's what you want.

The problem with passing a function and its parameters is that different functions take different parameters. To deal with that, I think you'd need std::function[^]. Again, that's not something I've used, but now you can look for more details.

My go-to site for C++ is here[^]. It's a bit formal, so sometimes you need to look elsewhere for explanations and examples that are easier to understand. But it will provide you with the right terminology to use when investigating something.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.

QuestionRegarding Constructor Calling in C++ Pin
Member 1522917415-Jun-21 3:08
Member 1522917415-Jun-21 3:08 
AnswerRe: Regarding Constructor Calling in C++ Pin
David Crow15-Jun-21 3:29
David Crow15-Jun-21 3:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.