Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Make fixed the size of my dialog box
Forum Updated to NodeBB v4.3 + New Features

Make fixed the size of my dialog box

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 3.6k 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.
  • M Offline
    M Offline
    MKSPulok
    wrote on last edited by
    #1

    how can I make my Q dialog box size fixed

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      call "setFixedSize() ":/doc/qt-4.8/qwidget.html#setFixedSize

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

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

        you can write

        @yourDialog->setFixedSize(300, 300);@

        Edit: Sorry for double reply. I got late to click on post reply.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MKSPulok
          wrote on last edited by
          #4

          hi, I used it like

          TnFSimulatorAssetCategoryEditorDlg->setFixedSize(int w. int h);

          but It gives the following error..
          1.expec ted primary expression before 'int'

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

            Post Updated Check Again.

            @yourDialog->setFixedSize(int w, int h);@

            where w means width of type integer
            and h means height of type integer.

            so as per your requirement you can set the values.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MKSPulok
              wrote on last edited by
              #6

              Sorry for bothering I've fixed the problem

              1 Reply Last reply
              0
              • M Offline
                M Offline
                MKSPulok
                wrote on last edited by
                #7

                Thanks to both of u.

                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