Important: Please read the 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