Results 1 to 2 of 2

Thread: Possible to make the text in a QMessageBox 'selectable' by mouse?

  1. #1
    Join Date
    Nov 2009
    Location
    Sweden
    Posts
    34
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Possible to make the text in a QMessageBox 'selectable' by mouse?

    A short one: How can I make the text shown in a QMessageBox selectable by the mouse? If it is possible at all, that is.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Possible to make the text in a QMessageBox 'selectable' by mouse?

    Sure, you can either subclass QMessageBox, or write a custom one based on QDialog.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. QMessageBox - Text in the buttons
    By graciano in forum Qt Programming
    Replies: 4
    Last Post: 20th June 2015, 23:51
  2. Replies: 12
    Last Post: 4th May 2010, 22:33
  3. SETTING THE TEXT COLOR FOR QMessageBox
    By vinkakarun in forum Newbie
    Replies: 2
    Last Post: 5th November 2009, 16:32
  4. QMessageBox ignores nobr with rich text format
    By daggilli in forum Qt Programming
    Replies: 0
    Last Post: 14th October 2008, 03:54
  5. Mouse Freezes upon using QmessageBox::warning function.
    By kaushal_gaurav in forum Qt Programming
    Replies: 4
    Last Post: 18th June 2008, 05:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.