Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Update Windows Title in Embedded Application
Forum Updated to NodeBB v4.3 + New Features

Update Windows Title in Embedded Application

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
13 Posts 3 Posters 5.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #4

    Hi,

    Qtopia ? Are you locked to it ? That's a project that has reached EOL 8 years ago so it's not necessarily a good idea to start a new project with it.

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    K 1 Reply Last reply
    1
    • SGaistS SGaist

      Hi,

      Qtopia ? Are you locked to it ? That's a project that has reached EOL 8 years ago so it's not necessarily a good idea to start a new project with it.

      K Offline
      K Offline
      Kashif
      wrote on last edited by
      #5

      Hi @SGaist,
      Its a new device for me, and I am following the base code provided by the device vendor. I don't know how to change the architecture and if i do something how to make it work on device.
      I tried hello world ui application, compiled successfully but it gives me run time exceptions on device.

      Hope this answers your query.

      Thanks

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #6

        You should check with the vendor if you can use something a bit more recent.

        As for your error, can you get a stack trace ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        K 1 Reply Last reply
        1
        • SGaistS SGaist

          You should check with the vendor if you can use something a bit more recent.

          As for your error, can you get a stack trace ?

          K Offline
          K Offline
          Kashif
          wrote on last edited by Kashif
          #7

          Hi @SGaist,

          Sorry for delayed response as I am woking in Qatar and we have weekend for Friday/Saturday.
          I tried again the same thing and I am not getting exception now, no idea what I had done before, may be some uninitialized pointer that I may have fixed when moving forward to application logical code.
          Currently as I mentioned that I am not getting exception but issue is that the main window title is getting updated when the control is returned back to main constructor. Also to mention that I have disabled the push buttons in the same function and that code is working fine:
          For the main window title I have placed following line of code:

              setWindowTitle("PURCHASE");
              centralWidget->update();
              centralWidget->repaint();
          
          

          Thanks

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #8

            The QMainWindow title has nothing to do with the central widget.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            K 1 Reply Last reply
            0
            • SGaistS SGaist

              The QMainWindow title has nothing to do with the central widget.

              K Offline
              K Offline
              Kashif
              wrote on last edited by
              #9

              Hi @SGaist,
              Can you please write me a line or reference on how do to update QMainWindow title in my code as I am not using "ui" component so its something unknown for me.

              Thanks

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #10

                Well:
                @Kashif said in Update Windows Title in Embedded Application:

                setWindowTitle

                of your QMainWindow is the right method AFAIR.

                Can you show what you get ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                K 1 Reply Last reply
                1
                • SGaistS SGaist

                  Well:
                  @Kashif said in Update Windows Title in Embedded Application:

                  setWindowTitle

                  of your QMainWindow is the right method AFAIR.

                  Can you show what you get ?

                  K Offline
                  K Offline
                  Kashif
                  wrote on last edited by Kashif
                  #11

                  Hi @SGaist,

                  I used this function in my code but the title is getting updated only when the control returns back to push button calling event (the class constructor where I have defined central widget and buttons, code is pasted in third comment)

                  Thanks

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #12

                    Why are you calling QWidget::setWindowTitle rather than just setWindowTitle ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    K 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Why are you calling QWidget::setWindowTitle rather than just setWindowTitle ?

                      K Offline
                      K Offline
                      Kashif
                      wrote on last edited by
                      #13

                      Hi @SGaist,

                      I tried both and the outcome is same.

                      Thanks

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved