Top "Qt4" questions

Questions specifically relating to the deprecated version 4.x.x of the Qt C++ GUI library.

'QObject::QObject' cannot access private member declared in class 'QObject'

class CHIProjectData : public QObject { public: CHIProjectData(); CHIProjectData(QMap<QString,QString> aProjectData, CHIAkmMetaData* apAkmMetaData = 0, QObject* parent = 0); private: QMap <…

c++ qt inheritance qt4
Qt - How to associate data with QTableWidgetItem?

I want to associate additional data with each QTableWidgetItem inserted into the table, in order to use that data in …

qt qt4 qtablewidget qtablewidgetitem
Qt 4.5 - Is emitting signal a function call, or a thread, and does it blocks?

I am not sure about the nature of the signal/slot mechanism in Qt 4.5. When a signal is emitted, is …

qt qt4
Build Qt in "Release with Debug Info" mode?

Is there a way to build Qt in "Release with Debug info" mode ? My application crashes only in "release" mode (…

c++ qt qt4 qmake
update() or repaint() fails to trigger paintEvent()

I have a QScrollArea fathering my awesome scrolling widget. I like to do updates on the contents on various occasions. …

qt4 repaint
Set widget in center in QDesigner

Is it possible to set widget in center of dialog or windows in QDesigner, say I have a widget contain 3 …

qt qt4 qt-creator qt-designer
QT + How to call slot from custom C++ code running in a different thread

I am new to QT and I am doing some learning. I would like to trigger a slot that modify …

qt qt4 signals-slots
How to work with OpenGL and QT?

I'm Working on a small project and i need to work with OpenGL + QT I'm Newbie in both of them. …

c++ qt opengl qt4 qt4.6
Set color to a QTableView row

void MyWindow::initializeModelBySQL(QSqlQueryModel *model,QTableView *table,QString sql){ model = new QSqlQueryModel(this); model->setQuery(sql); } With this method …

qt qt4 qtableview qsqltablemodel
Qt interfaces or abstract classes and qobject_cast()

I have a fairly complex set of C++ classes that are re-written from Java. So each class has a single …

c++ qt interface qt4 qobject