Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qmainwindow setting
Forum Updated to NodeBB v4.3 + New Features

Qmainwindow setting

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 3 Posters 4.2k 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.
  • K Offline
    K Offline
    kitten
    wrote on last edited by
    #1

    hi to every one
    i want to know how can i do this ?
    i want my program that has three status
    1.minimized
    2.maximized
    3.fixed size i before create it

    www.kitten.mihanblog.com

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chuck Gao
      wrote on last edited by
      #2
      1. showMinimized()
      2. showMaximized()
      3. setFixedSize()

      Enjoy Qt!

      Chuck

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kitten
        wrote on last edited by
        #3

        i think you did'nt get my question
        when i use setfixedsize function maximize button will get disabled( i think)

        www.kitten.mihanblog.com

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Franzk
          wrote on last edited by
          #4

          Fixed size is kind of conflicting with maximized for the simple reason that you need to be able to resize to be able to maximize. Best course of action is of course to drop the old fashioned fixed size windows and do everything using the "QLayout":http://doc.trolltech.com/latest/qlayout.html#details system.

          Edit: I noticed only just after posting that this is in the Quick thread. I have no experience with it, but still, if you can, don't do fixed size windows. It's like telling your users that you know what they want to look at.

          "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kitten
            wrote on last edited by
            #5

            hi i got your mean but i don't know how to use QLayout.
            can you give a code do that?

            www.kitten.mihanblog.com

            1 Reply Last reply
            0
            • F Offline
              F Offline
              Franzk
              wrote on last edited by
              #6

              There's the "Basic Layouts Example":http://doc.trolltech.com/latest/layouts-basiclayouts.html and the "Flow Layout Example":http://doc.trolltech.com/latest/layouts-flowlayout.html.

              "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

              http://www.catb.org/~esr/faqs/smart-questions.html

              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