C++ Qt 26 - QMessageBox

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ธ.ค. 2024

ความคิดเห็น • 21

  • @Theserath
    @Theserath 11 ปีที่แล้ว +13

    If you're using Qt 5.0, you need to also include QtWidgets.

  • @EndersChan
    @EndersChan 8 ปีที่แล้ว +3

    thank you for this series of tutorials, it really helped me to deal with qt. I really do appreciate your work.

  • @markusklingsiek2366
    @markusklingsiek2366 11 ปีที่แล้ว

    Interesting feature which you didn't explained explicitly but which shows up in that tutorial as a side effect:
    QT arranges the button according to the OSes "Message box button arrangement policy." ^^ You entered "Yes to all" before "Yes", but Qt automatically changed this.
    Also, on Mac OS, buttons in Msg-Boxes will be arranged in a different way than on Windows. Qt automatically takes care of this.

  • @Platifiy
    @Platifiy 11 ปีที่แล้ว

    Gui inherits core. So no need to include both header files. Just including Gui is enough. Also, include QtWidgets.

  • @mepret
    @mepret 12 ปีที่แล้ว

    How about custom text on the buttons? Like "overwrite"? How would you handle the response? Thanks.

  • @phantuan1219
    @phantuan1219 11 ปีที่แล้ว +1

    Thanks for your tutorial.

  • @cezudas
    @cezudas 12 ปีที่แล้ว

    I belive that the explanation for differences between uppercase and lowercase qmessage standard button is mismatch : the uppercase one represents an object and the lowercase one is , actually , an action, right? I belive that this is true for the other members of the QMessageBox class. ex: question vs Question, etc.
    Thanks for the tutorial! very helpful!

  • @DevDamian
    @DevDamian 12 ปีที่แล้ว

    Your tutorials are so great, thanks.

  • @momchi2
    @momchi2 13 ปีที่แล้ว

    Can a message box be non-blocking? (modeless?) Then, how do we connect it's button's signal to a slot? Thanks, very useful tutorials!

  • @ACBoredz
    @ACBoredz 13 ปีที่แล้ว

    what if you want to make a message box automatically appear without having to press a button like I want to make a program where if the person enters three to a program an if statement checks if the number is three and then opens a message box saying something if it is 3 ?

  • @smm8943
    @smm8943 9 ปีที่แล้ว

    Hello, thanks for the tutorial I have been learning a lot. I need to create an installer that it will run in any plataform how can I do this ?? Or if this it's not possible how can I create an installer for each plataform with Qt Creator in Windows ??

  • @1994savvas
    @1994savvas 11 ปีที่แล้ว

    I included QtCore and QtGui, but I get the error "QMessageBox has not been declared". What should I do? Is it a problem that I use mainwindow instead of a dialog?
    I use version Qt Creator 2.7.0 (Based on Qt 5.0.2).

  • @benaqp92
    @benaqp92 12 ปีที่แล้ว

    very good!! thank you for the help

  • @ArtemErofeev
    @ArtemErofeev 12 ปีที่แล้ว

    i think you have to past code of messagebox in a change slot

  • @dluanvn
    @dluanvn 12 ปีที่แล้ว

    How to push Notification in QT nec??

  • @hafsaelifozciftci9576
    @hafsaelifozciftci9576 8 ปีที่แล้ว

    QMessageBox::information(QMessageBox::NoIcon, "Title Here", "Text Here","If you want to change button text (default text is ok )");

  • @ccaatthheerriinnee
    @ccaatthheerriinnee 10 ปีที่แล้ว

    How would you display an image? For example, if the answer to "Do you like cats?" is "yes"; and you want to display a pic of a cat instead of another message box.

    • @bobjoneswof
      @bobjoneswof 10 ปีที่แล้ว

      use xhtml if you dont know xhtml just learn the basics and you should be able to do it.

  • @МихаилКорчик
    @МихаилКорчик 5 ปีที่แล้ว +1

    !