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

QMessageBox Align

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 559 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.
  • I Offline
    I Offline
    Ibrahim
    wrote on last edited by
    #1

    Hi; I want to align QMessageBox on MainWindow. I tried QMessageBox::warning(this, "A", "B").move(0, 0); but it's not working. How can I do it? Thanks.

    kshegunovK 1 Reply Last reply
    0
    • I Ibrahim

      Hi; I want to align QMessageBox on MainWindow. I tried QMessageBox::warning(this, "A", "B").move(0, 0); but it's not working. How can I do it? Thanks.

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      You need to manually create the message box to be able to move it. You won't be able to do it with the static functions. It's a regular dialog window, so look up the docs there should be an example how to show and customize it without resorting to the static function shorthands.

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved