Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved How to make a customize messagebox ?

    General and Desktop
    2
    5
    157
    Loading More Posts
    • 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.
    • C
      chris_rookie last edited by

      How to make a customize messagebox ? It can resize for content.

      JonB 1 Reply Last reply Reply Quote 0
      • JonB
        JonB @chris_rookie last edited by

        @chris_rookie
        Either try sending large text to QMessageBox and see what it looks like (it may resize, I don't know), or roll your own via QDialog which does whatever you want.

        C 1 Reply Last reply Reply Quote 1
        • C
          chris_rookie @JonB last edited by

          @JonB
          It should, I wanna make a general customize messagebox. It can be used on all condition, just like the QMessageBox.
          I just how to resize QDialog's size dynamic。

          JonB 1 Reply Last reply Reply Quote 0
          • JonB
            JonB @chris_rookie last edited by

            @chris_rookie
            I believe you'll find that QDialog already has "dynamic" size/resizes to accommodate oversized content. Have you tried it?

            C 1 Reply Last reply Reply Quote 0
            • C
              chris_rookie @JonB last edited by

              @JonB
              ok.
              I'll try it now.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post