Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. NO cancel "X" appears in Qt application window

NO cancel "X" appears in Qt application window

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
10 Posts 4 Posters 1.3k 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.
  • S Offline
    S Offline
    shree_121
    wrote on last edited by
    #1

    Hello, In my application i have 2 windows when i ran my Qt widget program it built correctly . In application output for first window there is no the cancel 'X' in the right-upper corner and also no title displayed which i set using setWindowtitle() but it appears in second window. So how to get cancel option for first window too?

    aha_1980A 1 Reply Last reply
    0
    • S shree_121

      Hello, In my application i have 2 windows when i ran my Qt widget program it built correctly . In application output for first window there is no the cancel 'X' in the right-upper corner and also no title displayed which i set using setWindowtitle() but it appears in second window. So how to get cancel option for first window too?

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @shree_121,

      can you please show a screenshot of your problem?

      Qt has to stay free or it will die.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        shree_121
        wrote on last edited by
        #3

        hi@aha_1980, Here is my screensho0_1538465639336_screenshot.png ![alt text](image url).
        in corner u can see no 'X' and when this screen appears on screen all background desktop functions also disabled.

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi
          Do you call setWindowsFlags or something?
          Also this is on windows ?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            shree_121
            wrote on last edited by
            #5

            hi@mrji, I called setWindowTitle() and setFixedSize(). This is on centos 7.

            mrjjM 1 Reply Last reply
            0
            • S shree_121

              hi@mrji, I called setWindowTitle() and setFixedSize(). This is on centos 7.

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by mrjj
              #6

              @shree_121
              hi
              Just to rule out a broken installation.
              Could you try a default GUI project?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                shree_121
                wrote on last edited by
                #7

                yes i am using default GUI project.

                jsulmJ 1 Reply Last reply
                0
                • S shree_121

                  yes i am using default GUI project.

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @shree_121 Do you run a window manager?

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  3
                  • S Offline
                    S Offline
                    shree_121
                    wrote on last edited by
                    #9

                    @jsulm No.

                    mrjjM 1 Reply Last reply
                    0
                    • S shree_121

                      @jsulm No.

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @shree_121
                      hehe. well the windows manager draws the decorations.
                      so no windows manager, no decorations such as frames and close icons etc. :)

                      1 Reply Last reply
                      4

                      • Login

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