C++/Qt

all about C++/Qt programming

QT : Setting Text Under Tool Button in QToolBar

QT : Setting Text Under Tool Button in QToolBar

QT : Setting Text Under Tool Button in QToolBar I am create a designer with QDesigner and try to add toolbar in that mainwindow. But I dont see text under toolbutton when running my program. This is how look my program : The problem is I want to add text under Tool Button in QtoolBar. [...]

Qt : Convert QString to char

Qt : Convert QString to char QString have very much feature compared with char data type. But, in some of conditions, we need to Qt : convert QString to char datatype. This is a sample function how Qt : Convert QString to char datatype : const char *QString2char(QString str) { QByteArray byteArray; const char *cstr; [...]