<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									QMessageBox или QDialog - простейший пример?? - Qt				            </title>
            <link>https://microtechnics.ru/community/qt/qmessagebox-ili-qdialog-prostejshij-primer/</link>
            <description>Обсуждение вопросов, посвященных программированию микроконтроллеров, разработке электроники и не только.</description>
            <language>ru-RU</language>
            <lastBuildDate>Fri, 17 Apr 2026 05:59:45 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>НА: QMessageBox или QDialog - простейший пример??</title>
                        <link>https://microtechnics.ru/community/qt/qmessagebox-ili-qdialog-prostejshij-primer/#post-3061</link>
                        <pubDate>Fri, 01 Nov 2024 12:22:00 +0000</pubDate>
                        <description><![CDATA[Спасибо!]]></description>
                        <content:encoded><![CDATA[<p>Спасибо!</p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/qt/">Qt</category>                        <dc:creator>BPIT</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/qt/qmessagebox-ili-qdialog-prostejshij-primer/#post-3061</guid>
                    </item>
				                    <item>
                        <title>НА: QMessageBox или QDialog - простейший пример??</title>
                        <link>https://microtechnics.ru/community/qt/qmessagebox-ili-qdialog-prostejshij-primer/#post-3060</link>
                        <pubDate>Fri, 01 Nov 2024 10:56:16 +0000</pubDate>
                        <description><![CDATA[QMessageBox::Ok                  0x00000400  An &quot;OK&quot; button defined with the AcceptRole.
QMessageBox::Open                0x00002000  An &quot;Open&quot; button defined with the AcceptRole.
QMessage...]]></description>
                        <content:encoded><![CDATA[<pre contenteditable="false">QMessageBox::Ok                  0x00000400  An "OK" button defined with the AcceptRole.
QMessageBox::Open                0x00002000  An "Open" button defined with the AcceptRole.
QMessageBox::Save                0x00000800  A "Save" button defined with the AcceptRole.
QMessageBox::Cancel              0x00400000  A "Cancel" button defined with the RejectRole.
QMessageBox::Close               0x00200000  A "Close" button defined with the RejectRole.
QMessageBox::Discard             0x00800000  A "Discard" or "Don't Save" button, depending on the platform, defined with the DestructiveRole.
QMessageBox::Apply               0x02000000  An "Apply" button defined with the ApplyRole.
QMessageBox::Reset               0x04000000  A "Reset" button defined with the ResetRole.
QMessageBox::RestoreDefaults     0x08000000  A "Restore Defaults" button defined with the ResetRole.
QMessageBox::Help                0x01000000  A "Help" button defined with the HelpRole.
QMessageBox::SaveAll             0x00001000  A "Save All" button defined with the AcceptRole.
QMessageBox::Yes                 0x00004000  A "Yes" button defined with the YesRole.
QMessageBox::YesToAll            0x00008000  A "Yes to All" button defined with the YesRole.
QMessageBox::No                  0x00010000  A "No" button defined with the NoRole.
QMessageBox::NoToAll             0x00020000  A "No to All" button defined with the NoRole.
QMessageBox::Abort               0x00040000  An "Abort" button defined with the RejectRole.
QMessageBox::Retry               0x00080000  A "Retry" button defined with the AcceptRole.
QMessageBox::Ignore              0x00100000  An "Ignore" button defined with the AcceptRole.
QMessageBox::NoButton            0x00000000  An invalid button.</pre>
<p>Здесь все есть - <a href="https://doc.qt.io/qt-6/qmessagebox.html#StandardButton-enum" target="_blank" rel="noopener">ссылка</a>.</p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/qt/">Qt</category>                        <dc:creator>Aveal</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/qt/qmessagebox-ili-qdialog-prostejshij-primer/#post-3060</guid>
                    </item>
				                    <item>
                        <title>НА: QMessageBox или QDialog - простейший пример??</title>
                        <link>https://microtechnics.ru/community/qt/qmessagebox-ili-qdialog-prostejshij-primer/#post-3059</link>
                        <pubDate>Fri, 01 Nov 2024 10:37:18 +0000</pubDate>
                        <description><![CDATA[@aveal 
Спасибо, работает и это прям то что надо!!
Подскажите какие еще кнопки могут быть?]]></description>
                        <content:encoded><![CDATA[<p>@aveal </p>
<p>Спасибо, работает и это прям то что надо!!</p>
<p>Подскажите какие еще кнопки могут быть?</p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/qt/">Qt</category>                        <dc:creator>BPIT</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/qt/qmessagebox-ili-qdialog-prostejshij-primer/#post-3059</guid>
                    </item>
				                    <item>
                        <title>НА: QMessageBox или QDialog - простейший пример??</title>
                        <link>https://microtechnics.ru/community/qt/qmessagebox-ili-qdialog-prostejshij-primer/#post-3058</link>
                        <pubDate>Fri, 01 Nov 2024 08:40:43 +0000</pubDate>
                        <description><![CDATA[Привет, лови:
QMessageBox msgBox;
msgBox.setText(&quot;Some text&quot;);
msgBox.setInformativeText(&quot;Settings changed.&quot;
                          &quot;Discard changes?&quot;);
msgBox.setStandardButtons(QMe...]]></description>
                        <content:encoded><![CDATA[<p>Привет, лови:</p>
<pre contenteditable="false">QMessageBox msgBox;
msgBox.setText("Some text");
msgBox.setInformativeText("Settings changed."
                          "Discard changes?");
msgBox.setStandardButtons(QMessageBox::Apply | QMessageBox::Discard);
int result = msgBox.exec();

switch(result)
{
    case QMessageBox::Discard:
        // User clicked "Discard"
        break;

    case QMessageBox::Apply:
        // User clicked "Apply"
        break;

    default:
        break;
}</pre>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/qt/">Qt</category>                        <dc:creator>Aveal</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/qt/qmessagebox-ili-qdialog-prostejshij-primer/#post-3058</guid>
                    </item>
				                    <item>
                        <title>QMessageBox или QDialog - простейший пример??</title>
                        <link>https://microtechnics.ru/community/qt/qmessagebox-ili-qdialog-prostejshij-primer/#post-3057</link>
                        <pubDate>Thu, 31 Oct 2024 17:30:58 +0000</pubDate>
                        <description><![CDATA[Всем привет, набросайте пожалуйста кто-нибудь простейший пример диалогового окна на базе QMessageBox или QDialog - без разницы - для стандартной формы. Нужно вывести пользователю предупрежде...]]></description>
                        <content:encoded><![CDATA[<p>Всем привет, набросайте пожалуйста кто-нибудь простейший пример диалогового окна на базе QMessageBox или QDialog - без разницы - для стандартной формы. Нужно вывести пользователю предупреждение и спросить подтверждение (две кнопки - принять/отказаться). После закрытия окна проанализировать, что выбрал пользователь.</p>
<p>Плохо ориентируюсь в официальной документации, если у кого будет возможность, набросайте пожалуйста простенький вариант, дальше буду уже копаться сам.</p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/qt/">Qt</category>                        <dc:creator>BPIT</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/qt/qmessagebox-ili-qdialog-prostejshij-primer/#post-3057</guid>
                    </item>
							        </channel>
        </rss>
		