Click here to Skip to main content
15,503,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to resolve and understand how / why it works or not Pin
Richard MacCutchan12-Aug-22 23:12
mveRichard MacCutchan12-Aug-22 23:12 
GeneralRe: how to resolve and understand how / why it works or not Pin
Member 1496877113-Aug-22 5:09
Member 1496877113-Aug-22 5:09 
GeneralRe: how to resolve and understand how / why it works or not Pin
Richard MacCutchan13-Aug-22 5:28
mveRichard MacCutchan13-Aug-22 5:28 
GeneralRe: how to resolve and understand how / why it works or not Pin
Member 1496877113-Aug-22 7:12
Member 1496877113-Aug-22 7:12 
GeneralRe: how to resolve and understand how / why it works or not Pin
Richard MacCutchan13-Aug-22 7:25
mveRichard MacCutchan13-Aug-22 7:25 
GeneralRe: how to resolve and understand how / why it works or not Pin
Member 1496877113-Aug-22 9:59
Member 1496877113-Aug-22 9:59 
Question#define won't work in QStringList , gives no error Pin
Member 1496877111-Aug-22 12:18
Member 1496877111-Aug-22 12:18 
AnswerRe: #define won't work in QStringList , gives no error Pin
Mircea Neacsu11-Aug-22 12:57
mvaMircea Neacsu11-Aug-22 12:57 
1. You can concatenate strings. Like this:
C++
#define BT_DATABASE_TEST  "../../BT_DATABASE/BluetoothDatabase.txt"
const char *command = "bluetoothctl  show | tee " BT_DATABASE_TEXT " | tee /tmp/temp";

2. Maybe something like this:
C++
std::string var = "blah_blah.txt";
std::string command = std::string("bluetoothctl  show | tee ") + var + std::string("" | tee /tmp/temp");
QP->start("/bin/sh", QStringList() << "-c" << command.c_str());

Mircea

GeneralRe: #define won't work in QStringList , gives no error Pin
Member 1496877111-Aug-22 17:43
Member 1496877111-Aug-22 17:43 
GeneralRe: #define won't work in QStringList , gives no error Pin
David Crow11-Aug-22 17:03
David Crow11-Aug-22 17:03 
Questionmanaging objects derived from the same base class using a container Pin
Calin Negru10-Aug-22 4:29
Calin Negru10-Aug-22 4:29 
AnswerRe: managing objects derived from the same base class using a container Pin
Mircea Neacsu10-Aug-22 4:55
mvaMircea Neacsu10-Aug-22 4:55 
AnswerRe: managing objects derived from the same base class using a container Pin
Greg Utas10-Aug-22 4:56
mveGreg Utas10-Aug-22 4:56 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Negru10-Aug-22 7:34
Calin Negru10-Aug-22 7:34 
AnswerRe: managing objects derived from the same base class using a container Pin
Richard MacCutchan10-Aug-22 5:01
mveRichard MacCutchan10-Aug-22 5:01 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Negru10-Aug-22 7:33
Calin Negru10-Aug-22 7:33 
GeneralRe: managing objects derived from the same base class using a container Pin
Richard MacCutchan10-Aug-22 7:40
mveRichard MacCutchan10-Aug-22 7:40 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Negru10-Aug-22 12:14
Calin Negru10-Aug-22 12:14 
GeneralRe: managing objects derived from the same base class using a container Pin
k505410-Aug-22 14:01
mvek505410-Aug-22 14:01 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Negru10-Aug-22 22:25
Calin Negru10-Aug-22 22:25 
GeneralRe: managing objects derived from the same base class using a container Pin
Richard MacCutchan10-Aug-22 22:10
mveRichard MacCutchan10-Aug-22 22:10 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Negru11-Aug-22 1:38
Calin Negru11-Aug-22 1:38 
GeneralRe: managing objects derived from the same base class using a container Pin
Richard MacCutchan11-Aug-22 1:39
mveRichard MacCutchan11-Aug-22 1:39 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Negru11-Aug-22 1:57
Calin Negru11-Aug-22 1:57 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Negru12-Aug-22 19:58
Calin Negru12-Aug-22 19:58 

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.