我正在寫一個gui應用程序,我必須在已被提升爲類(my_qlabel)的標籤上顯示圖像。我使用另一個類中的對話框上傳圖像,並調用「my_qlabel」中的函數來顯示它。 void my_qlabel::displayImage(QString filename){
QPixmap pic (filename);
//..i dont know the relevant line
我正在開發嵌入式設備的用戶界面。我創建了大約30個UI表單。首先你需要加載數據庫的Welcome表單,並自動連接到可用的已知WiFi以及所有啓動功能。一旦一切都加載到加載下一個形式是用戶登錄 所以這是我如何去做,如果登錄我的第二UI //Instantiating the Login class
Login *myLog = new Login();
//Close the welcome
我已經添加qcustomplot.h/.c文件到我的Qt項目。它們位於:「QT_PROJECT_DIR/QCustomPlot /」。 我每次使用設計器Qt Creator中,並建立我ui_mainwindow.h得到這個錯誤: error: ../../qcustomplot.h: No such file or directory
#include "../../qcustomplot.h"