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. resizing....
Forum Updated to NodeBB v4.3 + New Features

resizing....

Scheduled Pinned Locked Moved Solved General and Desktop
17 Posts 2 Posters 3.5k 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.
  • mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Im not sure I understand what you mean.

    All widgets can be controlled by layouts ?

    Do you mean stuff like font size and such things?

    Qt 5.6 brings better support for high def screen etc.

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

      No I had done tests with three widgets that derivate from QDialog,from Qwidget,and from QMainwindow and that contain layouts with controls inside.only the class that derivates from QDialog can be correctly resized (manually with the mouse) the two other class that derivates from QWidget and QMainwindow cannot be correctly resized.I had even looked at the code from QDialog to see how it was made for the resizing (don't rememeber exactly now...)

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

        Well I use many dialog and I have no such issues.

        What do yo u mean with "correctly resized" ?

        Also QMainwindow have no issues with layouts so im wondering what you mean.

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

          the dialog haven't any problem.I have said that the class that derivates from QDialog can be correctly resized.this is not the case of the class that derivates from QWidget and from QMainwindow,the Qwidget and QMainwindow are not correctly resized....

          mrjjM 1 Reply Last reply
          0
          • S stephane78

            the dialog haven't any problem.I have said that the class that derivates from QDialog can be correctly resized.this is not the case of the class that derivates from QWidget and from QMainwindow,the Qwidget and QMainwindow are not correctly resized....

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

            @stephane78
            here is a mainwinow that does resizing
            https://www.dropbox.com/s/4f3d5fworwtt3g8/stephaneresize.zip?dl=0

            Explain to me the incorrect part as it does 100% as i want it to?

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

              OK,the only difference with my mainwindow is that mine doesn't contain a centralwidget but contains layouts.does the central widget do the resizing ? is there any mean to send you my test project ?

              mrjjM 1 Reply Last reply
              0
              • S Offline
                S Offline
                stephane78
                wrote on last edited by
                #8

                and I don't use frames too in my mainwindow...

                1 Reply Last reply
                0
                • S stephane78

                  OK,the only difference with my mainwindow is that mine doesn't contain a centralwidget but contains layouts.does the central widget do the resizing ? is there any mean to send you my test project ?

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

                  @stephane78
                  Well the layout is on the central widget.
                  So in that sense yes.

                  Do you have dropbox ? very easy to share that way.
                  just paste link here.

                  mrjjM 1 Reply Last reply
                  0
                  • mrjjM mrjj

                    @stephane78
                    Well the layout is on the central widget.
                    So in that sense yes.

                    Do you have dropbox ? very easy to share that way.
                    just paste link here.

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

                    the frames are just to have areas to have different layouts in.
                    in right and left side. Could also just been a widget

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      stephane78
                      wrote on last edited by
                      #11

                      https://www1.wesend.com/download/?dl=e4c5f4cc6c1f1c775365e748a2f7b47728662dcc1cadbb90af61026e2b797786&uid=c68e22ee338184f6ef7f2b509906472f63681d8790ba4fbcb7f0acf1d1c91611&send=a8724f601ab6e962aa4607d1e42e05e5bedf38aa00c51484242c684c9120c4ea

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        stephane78
                        wrote on last edited by
                        #12

                        you can try to download my project?
                        I haven't put any central widget and that is probably my problem.did you put a vertical or horizontal layout in the central widget ?

                        mrjjM 1 Reply Last reply
                        0
                        • S stephane78

                          you can try to download my project?
                          I haven't put any central widget and that is probably my problem.did you put a vertical or horizontal layout in the central widget ?

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

                          @stephane78
                          Already on it.
                          Yes it seems you dont put a layout on toplevel
                          widget so that is why its not working for you.

                          I will return project shortly.
                          I changed main and "form"

                          mrjjM 1 Reply Last reply
                          0
                          • mrjjM mrjj

                            @stephane78
                            Already on it.
                            Yes it seems you dont put a layout on toplevel
                            widget so that is why its not working for you.

                            I will return project shortly.
                            I changed main and "form"

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

                            https://www.dropbox.com/s/8bjluxxvvw8kdxf/essai_redimensionnement-2.zip?dl=0

                            mrjjM 1 Reply Last reply
                            0
                            • mrjjM mrjj

                              https://www.dropbox.com/s/8bjluxxvvw8kdxf/essai_redimensionnement-2.zip?dl=0

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

                              hi
                              picture of where u needed to add layout.
                              It dont matter if horz or vert. that just want u need.

                              http://postimg.org/image/bl5pgxhhb/

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                stephane78
                                wrote on last edited by
                                #16

                                Ok thank you mrjj,

                                so even the qwidget and qmainwindow can be resized , I had this problem because I havent' put a layout in central widget.
                                ok my problem is solved.

                                mrjjM 1 Reply Last reply
                                1
                                • S stephane78

                                  Ok thank you mrjj,

                                  so even the qwidget and qmainwindow can be resized , I had this problem because I havent' put a layout in central widget.
                                  ok my problem is solved.

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

                                  @stephane78
                                  Ok super to hear.

                                  Yes all can be re-sized. All Widgets.

                                  If you need special / complex layout. you can use a qwidget as placeholder for a
                                  layout so you can easy have layouts in layouts if needed.

                                  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