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. Can I show QMessageBox that can be resized like in layouts?
Forum Updated to NodeBB v4.3 + New Features

Can I show QMessageBox that can be resized like in layouts?

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

    I am showing file names in my QMessageBox::information() as part of my display message. It will be much easier to read if user could resize the dialog (make it bigger) so one file path can fit in one line.

    Is there way QMessageBox can be set to be resizable by user? Thanks.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      AFAIK, no. But creating a custom QDialog with QDialogButtonBox showing that and being resizable will be faster

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • T Offline
        T Offline
        theknight47
        wrote on last edited by
        #3

        Hello xalam,

        I think that creating a class that inherits from QDialog is the best solution

        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