Author Archives: courts
Setup visual studio with QT
I searched long and hard trying to get usual studio to work with QT. QT creator is great but its nice to be in a familiar environment. I came across this doc at http://portfolio.delinkx.com/files/Qt.pdf Its slightly out dated but the … Continue reading
QT Using layouts and updating QWidgets based on other widget’s value
#include #include #include #include int main(int argc, char *argv[]) { QApplication app(argc, argv);//construct QApp QWidget *window = new QWidget;//instanciate the QWidget window window->setWindowTitle(“Enter Your Age”);//set the title QSpinBox *spinBox = new QSpinBox;//create a spinner QSlider *slider = new QSlider(Qt::Horizontal);//create a … Continue reading
C++ QT Tutorial – Using signals and slots to listen for mouse click event
This simple program listens for a mouse click event. QT provides a power mechanism (covered later in this post on Signals and slots) called signals and slots. If you’re a java programmer then signals and slots is the equivalent* of … Continue reading