Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Regarding accessing command line arguments



  • Hi All

    I have created an QtApplication project.On Window i have one QLabel.
    Now i am running my application from command prompt with command line arguments.
    I am able to recieve those arguments,But i want to set those arguments to my label on window.
    so how can i access my Label variable in main();



  • Create a public function (member of the "widget" class that contains the ui) that takes a QString and set it as the QLabel text and call the widget's member function from main.


Log in to reply