Hey!
I'm new to QT4...I've created my UI in the Designer. In my UI I have 5 lables that I would like to put images in. So in the pixmap property for each label...I put in the image I want. However when I compile and run the application, the images don't show up.
I can't figure out what I'm doing wrong. I'm assuming that the generated code is accurate. I don't have any code yet....except a standard main.cpp...copied from the tutorials.
Here's what is generated for each label
label
= new QLabel(tabProcess
);
label
->setObjectName
(QString::fromUtf8("label"));
label
->setGeometry
(QRect(140,
100,
100,
100));
label->setAlignment(Qt::AlignCenter);
label = new QLabel(tabProcess);
label->setObjectName(QString::fromUtf8("label"));
label->setGeometry(QRect(140, 100, 100, 100));
label->setPixmap(QPixmap(QString::fromUtf8("stop_image_70.png")));
label->setAlignment(Qt::AlignCenter);
To copy to clipboard, switch view to plain text mode
Any ideas?
Bookmarks