Qt Programming Language
-
And here's yet a third example. This one is an example of a finished script that can be generated when a customer completes the steps to customize a wedding ceremony. Again, this one is in html, but I want to put it in Qt. This example is actually the ceremony script I've compiled for my upcoming wedding.
<head> <title>Wedding Ceremony Script</title> </head> <div class="panel panel-orange-side wedding-ceremony-section" id="processional-section" style="visibility: visible;"> <div class="panel-heading">Processional</div> <div class="panel-body"> ~ Introductory Music ~ <div class="panel-body"> ~ "Feel The Summer Breeze" By Paul Hardcastle ~ <div class="panel-body"> ~ "Down By The Sea" by Men At Work ~ <div class="panel-body"> ~ "Wanna Be Loved" by John Legend ~ <div class="panel-body"> ~ "I Will" by Ben Taylor ~ </div> <div class="panel panel-orange-side wedding-ceremony-section" id="welcome-statement-section" style="visibility: visible;"> <div class="panel-heading">Welcome Statement</div> <div class="panel-body"><p><span class="text-blue"><strong>Minister:</strong></span> Welcome to this day of celebration, it's great to have all of you here to witness the union of <strong>Annabelle</strong> and <strong>John</strong> as life partners before the summer breeze, the warm sun, the soft sand, and the beautiful waves of the ocean. Together, we will share in the joys of their wedding, both with the outward celebration of this occasion and with an internal appreciation for the love that surrounds us.</p><p>We are all here to learn about loving and being loved, and to watch the miracle of love exchanged, as it enriches every one of us. Therefore, we appreciate the opportunity to witness the shared love of this beautiful couple.</p><p><strong>Annabelle</strong> and <strong>John</strong>, you two have the opportunity to build an amazing life together. You are very lucky to share this experience with the loved ones gathered here to support you as you embark on this journey together.</p><p>May you all remember and cherish this ceremony, for on this day, with love, we will forever bind <strong>Annabelle</strong> and <strong>John</strong> together.</p></div> <div class="panel panel-orange-side wedding-ceremony-section" id="memorial-candle-section" style="visibility: visible;"> <div class="panel-heading">Honoring The Departed</div> <div class="panel-body"> ~ "Memories Of You" by Lewis Luong ~ <div class="panel-body"><p><span class="text-blue"><strong>Minister:</strong></span> And now, let us all take a few moments to sit back and honor those we love who are not able to attend, but especially those who have since departed this world, and are now dancing on the gentle winds of the sky and the soft waves of the ocean.</p>At this time, the company shall light the memorial candles</p></div> <div class="panel-body"><p><span class="text-blue"><strong>Minister:</strong></span> And now, <strong>Annabelle</strong> would like you all to participate in an interlude that she wrote specially for someone who has inspired her with his music, one that comes from deep within her heart.</p><p><span class="text-blue"><strong>Annabelle:</strong></span> Will you all please join hands and repeat after me?</p><p>At this time, the company shall stand and hold each other's hands.</p><p><span class="text-blue"><strong>Annabelle:</strong></span> High in the skies, there flies a sweet guy.<p><span class="text-blue"><strong>Company:</strong></span> High in the skies, there flies a sweet guy.</p><p><span class="text-blue"><strong>Annabelle:</strong></span> Our beautiful Greg.</p><p><span class="text-blue"><strong>Company:</strong></span> Our beautiful Greg.</p><p><span class="text-blue"><strong>Annabelle:</strong></span> One of Australia's Sons.</p><p><span class="text-blue"><strong>Company:</strong></span> One of Australia's Sons.</p><p><span class="text-blue"><strong>Minister:</strong></span> You may now be seated.</div> <div class="panel panel-orange-side wedding-ceremony-section" id="family-blessing-section" style="visibility: visible;"> <div class="panel-heading">Family Blessing</div> <div class="panel-body"><p><span class="text-blue"><strong>Minister:</strong></span> Will you, parents of <strong>Annabelle</strong> and <strong>John</strong>, give your blessings to their marriage?<br><br><span class="text-blue"><strong>Parents:</strong></span> We will.</div> <div class="panel-body"><p><span class="text-blue"><strong>Minister:</strong></span> Will you, family and friends of <strong>Annabelle</strong> and <strong>John</strong>, do all in your power to support them and uphold their marriage?<br><br><span class="text-blue"><strong>Company:</strong></span> We will.</div> <div class="panel-body"><p><span class="text-blue"><strong>Minister:</strong></span> Who will bring <strong>Annabelle</strong> to be married to <strong>John</strong>?<br><br><span class="text-blue"><strong>Mama Jane:</strong></span> I will.</div> <div class="panel panel-orange-side wedding-ceremony-section" id="mother's-blessing-section" style="visibility: visible;"> <div class="panel-heading">Mother's Blessing</div> <div class="panel-body"> ~ "You Are My Home" by Linda Eder and Peabo Bryson ~ <div class="panel-body"><p><span class="text-blue"><strong>Mama Jane:</strong></span> <strong>Annabelle</strong>, from the moment I first held you, you held me. You held my heart that day, and I’m grateful that your grip has only strengthened through all these years. Wanting the best for you, I tried to be my best for you. Sometimes I reached that goal, and other times I fell short. But I never wavered in wanting the best for you.</p><p>On this day of your wedding, I believe the best is now. Furthermore, I believe that because you are choosing to marry <strong>John</strong>, better times are yet to come. I have always admired you. Yes, there were moments that were difficult for you as well as for me. Life is like that, but I watched you grow and sort things out and stick to what was good. I knew you were courageous and strong. I knew you were adventurous yet wise enough to play safely, loyal enough to share your opportunities, and humble enough to recognize the contributions of others to your success.</p><p>I love you, Little Australian, and I know now that you have reached that stage of transformation from being my little joey, to becoming a beautiful jillaroo. When the time comes, with hope, soon you and <strong>John</strong> may have some little joey roos of your own. And may you nurture them in love, just like what I've always done for you. It’s time now for you to want to and be the best for your husband. I know your marriage will succeed. The commitment of love you are making today comes from deep within you. I have seen it and so has <strong>John</strong>. Of course day-after-day relationships call for more than human beings can sometimes deliver. So I presume that you will discover occasional shortcomings in you as well as in <strong>John</strong>.</p><p>I am confident that these won’t deter you. You are greater than all life’s difficulties. Your marriage will overcome every obstacle. I’m not losing you now, but I rejoice that you are lifting another above me – that you are giving first place to that unique Oneness that every wife and husband is intended to fulfill. I rejoice knowing that you will be most loyal to that part of <strong>John</strong>, and part of you that shall always be united. This pleases me. It’s what I’ve always hoped and worked and prayed for - and consider to be the greatest gift you’ve ever given me. Go, now, with my blessing and applause. I am proud of you. You will be the wife that I always dreamed you would be.</p></div> <div class="panel panel-orange-side wedding-ceremony-section" id="speak-now-section" style="visibility: visible;"> <div class="panel-heading">Speak Now</div> <div class="panel-body"><span class="text-blue"><strong>Minister:</strong></span> If there is anyone in attendence who has reason to believe that these two life partners may not be joined together in Marriage, let them speak now, or else hereafter forever hold their peace. <div class="panel panel-orange-side wedding-ceremony-section" id="charge-to-the-couple-section" style="visibility: visible;"> <div class="panel-heading">Charge To The Couple</div> <div class="panel-body"><p><span class="text-blue"><strong>Minister:</strong></span> <strong>Annabelle</strong> and <strong>John</strong>, the vows of marriage you are about to take are to be made in love, and most important of all, in full commitment. Therefore, if either of you knows a reason why you may not be joined together as life partners, you must declare it now.</p</div> <div class="panel panel-orange-side wedding-ceremony-section" id="reading-section" style="visibility: visible;"> <div class="panel-heading">Reading</div> <div class="panel-body"> ~ "The First Time Ever I Saw Your Face" by Gordon Lightfoot ~ <div class="panel-body"><p><span class="text-blue"><strong>Minister:</strong></span> And now, <strong>John</strong> will read a poem that he wrote specially for his life partner, <strong>Annabelle</strong>, one that comes from deep within his heart.</p><p><span class="text-blue"><strong>John:</strong></span> You’re the one I’ve been thinkin’ of. You’re the one that I desire. You’re the one I’ve been dreamin’ of. You set my heart on fire! You light my mornin’ sky, when my skies are all grey. You know in my heart, Baby, that’s where you'll always stay. You do somethin’ to me, that I can never explain. But you know the truth, my Darlin’, my love is not a game!</p></div> <div class="panel panel-orange-side wedding-ceremony-section" id="consecration-section" style="visibility: visible;"> <div class="panel-heading">Consecration</div> <div class="panel-body"><p><span class="text-blue"><strong>Minister:</strong></span> As we stand here under the vast sky of love's possibilities, beside the ocean wide and deep, we give expression to our intention that this marriage grow stronger through the seasons. We honor earth and ask that this marriage be abundant and fruitful. We honor wind and ask that they be lifted up to soar through life, safe and calm. We honor fire and ask that their union be warm and glowing with love in their hearts. We honor water to cleanse and soothe this union that it may never thirst for love. Under this wondrous canopy of nature and with all the vast universe as our witness, we hope for them harmony and happiness as they grow forever together. And now it is with the love and respect of all gathered here that we proceed.</p></div> <div class="panel panel-orange-side wedding-ceremony-section" id="declaration-of-intent-section" style="visibility: visible;"> <div class="panel-heading">Declaration of Intent</div> <div class="panel-body"><p><span class="text-blue"><strong>Minister:</strong></span> <strong>Annabelle Susan</strong> Baradine</strong>, will you give yourself to <strong>John</strong>, to be his life partner, to live together in the unbroken bond of love and marriage? Will you love him, comfort him, honor and keep him, in sickness and in health? And, leaving all others behind, be faithful only to him, so long as you both shall live?</p><p><span class="text-blue"><strong>Annabelle:</strong></span> I Will. <div class="panel-body"><p><span class="text-blue"><strong>Minister:</strong></span> <strong>John Matthew</strong> Hayes</strong>, will you give yourself to <strong>Annabelle</strong>, to be her life partner, to live together in the unbroken bond of love and marriage? Will you love her, comfort her, honor and keep her, in sickness and in health? And, leaving all others behind, Be faithful only to her, so long as you both shall live?</p><p><span class="text-blue"><strong>John:</strong></span> I Will. </div> <div class="panel panel-orange-side wedding-ceremony-section" id="exchange-of-vows-section" style="visibility: visible;"> <div class="panel-heading">Exchange of Vows</div> <div class="panel-body"> ~ "Always And Forever" by Luther Vandross ~ <div class="panel-body"><p><span class="text-blue"><strong>Minister:</strong></span> <strong>Annabelle</strong> and <strong>John</strong>, I would now invite you to publicly speak your commitment to your partner.</p><p><strong>Annabelle</strong>, would you like to begin?</p><p><span class="text-blue"><strong><strong>Annabelle</strong>:</strong></span> I, <strong>Annabelle</strong>, choose you, <strong>John</strong>, to be my lawfully wedded <strong>life partner</strong>, to have and to hold from this day forward. For better, for worse. For richer, for poorer. In sickness and in health. To love and to cherish. Until death do us part. I promise to learn how to stop behaving like an American, and start behaving like an Australian and Canadian. I promise to never let anyone call you or any of our friends <u>retarded</u>. I promise to always let you help out around the house, especially when it comes to decorating the tree at holiday time. I promise to teach you all those simple tasks like how to open up bread ties, button up buttons, zip up zippers, and lace up shoe laces. I promise to never use any words and phrases that might come across as rude, but especially "Young Lady". I promise to always stand by your side and comfort you when you're crying. I promise to never laugh at you when you cry. I promise to never tell you that boys and men can't cry. I promise to always support you in times of fear, such as your fear of needles and shots. I promise to never tell you all those things that those bad guys say, such as "Control your fear." or "Take it like a man.". I promise to never do any of those bad habits like smoke, drink alcohol, or do drugs. I promise to hold you and our children in tender love and comfort. As singer Mark Anthony would say, I will soothe you when you fall. I'll be right there when you call. You're my greatest love of all.</p><p><span class="text-blue"><strong>Minister:</strong></span> <strong>John</strong>, your turn.</p><p><span class="text-blue"><strong><strong>John</strong>:</strong></span> I, <strong>John</strong>, choose you, <strong>Annabelle</strong>, to be my lawfully wedded life partner, to have and to hold from this day forward. For better, for worse. For richer, for poorer. In sickness and in health. To love and to cherish. Until death do us part. I promise to learn how to stop behaving like an American, and start behaving like an Australian and Canadian. I promise to never tell you that you're denying your heritage. I promise to never let anyone tell you that you're lying about who you are. I promise to let you help out with my work as a portable DJ, especially when it comes to choice of music. I promise to never use any words and phrases that might come across as rude, but especially "Young Lady". I promise to always stand by your side and comfort you when you're crying. I promise to never laugh at you when you cry. I promise to never make fake tears and boohoos at you when you cry. I promise to always support you in times of fear, such as your fear of needles and shots. I promise to never tell you all those things that those bad guys say, such as "You'll get over it." or "Grit your teeth and grin and bear it.". I promise to never do any of those bad habits like smoke, drink alcohol, or do drugs. I promise to hold you and our children in tender love and comfort. In the words of the members of Restless Heart, "I'll be yours until the sun doesn't shine. Till time stands still, until the wind don't blow. When today's just a memory to me, I know. I'll still be lovin' you.".</p></div> </div> <div class="panel panel-orange-side wedding-ceremony-section" id="reading-section" style="visibility: visible;"> <div class="panel-heading">Reading</div> <div class="panel-body"> ~ "Magnet And Steel" by Walter Egan ~ <div class="panel-body"><p><span class="text-blue"><strong>Minister:</strong></span> And now, <strong>Annabelle</strong> will read a poem that she wrote specially for her life partner, <strong>John</strong>, one that comes from deep within her heart.</p><p><span class="text-blue"><strong>Annabelle:</strong></span> Tender love comes from the heart. Two faithful lovers from the start. Shall be together and never apart. When you're in love, it's a beautiful sight. Love is like the sun, shining so bright. Or the evening stars on a moonlit night. Neither one should be shy to say what they feel. True love between lovers is always for real. <strong>John</strong>, you are my magnet, and I am your steel. <div class="panel panel-orange-side wedding-ceremony-section" id="blowing-ceremony-section" style="visibility: visible"> <div class="panel-heading">Bubble Wishing</div> <div class="panel-body"><p><span class="text-blue"><strong>Minister:</strong></span> <strong>Annabelle</strong> and <strong>John</strong>, while the words you have spoken have sealed your union, it is the making of wishes, sent to the open skies by the blowing of bubbles that truly symbolizes the melding of your two souls. </p><p>At this time, <strong>Annabelle</strong> and <strong>John</strong> would like you all to open up your bottle of bubbles now, and ask everyone gathered here today to join in extending to them your love and support by taking a moment to believe in magic. Please focus on your wish for their relationship to flourish and grow throughout a long and happy life together. So join me now in taking a moment to blow your bubbles out to the Universe and ask that this marriage be blessed and full of sunshine throughout their lives. Please take a deep breath now and send your wishes, blessings and thoughts out for <strong>Annabelle</strong> and <strong>John</strong> as you send your bubbles out into this beautiful day.</p></div> <div class="panel panel-orange-side wedding-ceremony-section" id="pronouncement-section" style="visibility: visible"> <div class="panel-heading">Pronouncement</div> <div class="panel-body"><p><span class="text-blue"><strong>Minister:</strong></span> Family and friends, having heard the vows of love they have made, and having witnessed the same in the face of this company, by the power vested in me by the city of <strong>Long Beach</strong>, by the state of <strong>California</strong>, and by the country of <strong>United States Of America</strong>, I am pleased to pronounce <strong>Annabelle</strong> and <strong>John</strong> as life partners, sealed together today both in law and in love.</p></div> </div> <div class="panel panel-orange-side wedding-ceremony-section" id="kiss-section" style="visibility: visible"> <div class="panel-heading">Kiss</div> <div class="panel-body"><p><span class="text-blue"><strong>Minister:</strong></span> Congratulations <strong>Annabelle</strong> and <strong>John</strong>, I now invite you to share your first lovers' kiss with each other.</p></div> <div class="panel-body"> ~ "Love Is Forever" by Billy Ocean ~ <div class="panel panel-orange-side wedding-ceremony-section" id="presentation-section" style="visibility: visible;"> <div class="panel-heading">Presentation</div> <div class="panel-body"><p><span class="text-blue"><strong>Minister:</strong></span> Friends, family members, loved ones. It is my happy privilege to present to you, for the first time anywhere, the united couple of life partners, Mr. and Mrs. <strong>Annabelle</strong> and <strong>John</strong> Baradine</strong>!</p></div> <div class="panel panel-orange-side wedding-ceremony-section" id="recessional-section" style="visibility: visible;"> <div class="panel-heading">Recessional</div> <div class="panel-body"> ~ Exit Music ~ <div class="panel-body"> ~ "Walkin' My Baby Back Home" by James Taylor ~ <div class="panel-body"> ~ "Love In The Future" by John Legend ~ <div class="panel-body"> ~ "Tropical Bird" by the Trinidad Steel Band ~ <div class="panel-body"> ~ "Could You Be Loved" by Bob Marley ~ </div> </div> </div> </div> </html>
-
There might be several possibilities:
- You can use the QtWebEngine/QtWebView modules to show your html documents
- Depending on their complexity, a QTextBrowser could be enough
Otherwise QtQuick might get you more fancy looking UI.
-
-
With C++ the QComboBox widget or with Qt Quick the ComboBox QML type.
-
@Annabelle
Yes its a spammer. He will be banned. -
Sadly, like on every forum, it happens from time to time. He's now banned.
-
-
Hi
What is the finished script ?
Should it be a document with formatting ?
Or can a text format do it ?There is the QTextEdit Class that can display rich text but what format would the end user want to have the script in ?
-
@mrjj said in Qt Programming Language:
Hi and welcome
You can also create widgets directly from code, using normal c++.So to create a button
one would simply do
QButton *mybutt= new QButton(this);Creator uses UI files which are xml files.
It then reads and convert these to c++ code.
So there is no text syntax as such for creating interfaces in text.You could in theory write the UI syntax directly, but it is most likely not
very fun.Many do not use Creator / Designer at all and write the code directly so yes, it is
very possible to do.So the "*mybutt" part of the "QButton *mybutt= new QButton(this);" code is where I would type a name for the button? For example, QButton *Next= new QButton(this);
How about for radio buttons and checkboxes? -
There's QRadioButton and QCheckBox.
-
@SGaist said in Qt Programming Language:
There's QRadioButton and QCheckBox.
When I create those widgets, how would I name them? For example, how would I translate the following code into Qt Widgets?
<label class="radio"><input checked="checked" name="basicInfo[spouse_one]" value="woman" type="radio"> Bride</label> <label class="radio"><input name="basicInfo[spouse_one]" value="man" type="radio"> Groom</label></br>
-
@mrjj said in Qt Programming Language:
Hi
What is the finished script ?
Should it be a document with formatting ?
Or can a text format do it ?There is the QTextEdit Class that can display rich text but what format would the end user want to have the script in ?
Isn't a "text edit" something the user would write into? For example, when they get to Step 19, which asks the customer to write what they want to choose for the "Introductory Music", "Interlude Music" which can be played at any time during the ceremony, and "Exit Music", those would be separate multiline edit boxes. The finished document would be one that's not editable, so a plain text format would do. The hard part for me would be how I would notate the widgets for paragraphs and sections.
-
@SGaist said in Qt Programming Language:
There's QRadioButton and QCheckBox.
How would I translate this example of checkboxes into Qt Widgets? Also, how would I make the tooltips of these checkboxes be spoken as "tutor messages" by a screenreader?
<label class="checkbox"> <span data-tooltip="The moments when the Bride/couple approach the altar and exit the wedding venue. Usually accompanied by music and the wedding party."> <input value="processionalRecessional" checked="checked" id="elements-processional-recessional" type="checkbox"> Processional/Recessional </span> </label> <label class="checkbox"> <span data-tooltip="A short greeting from the minister/officiant explaining the significance of the event."> <input value="welcomeStatement" checked="checked" id="elements-welcome-statement" type="checkbox"> Welcome Statement </span> </label> <label class="checkbox"> <span data-tooltip="A special moment of the ceremony, often containing a moment of silence, where the minister/officiant offers the guests a chance to honor those who couldn't attend, especially loved ones who are no longer with us. Guests may opt to light candles in honor of the departed."> <input value="memorialCandle" checked="checked" id="elements-memorial-candle" type="checkbox"> Honoring The Departed </span> </label> <label class="checkbox"> <span data-tooltip="A prayer or call to a higher power or force, often at the opening, as an intercession, or during the closing of the ceremony. This is usually recited by the minister/officiant. Sometimes the guests may be asked to join in."> <input value="Wedding Prayers" checked="checked" id="elements-consecration" type="checkbox"> Wedding Prayers </span> </label> <label class="checkbox"> <span data-tooltip="Also known as the “Give-Away”, or the “Bridal Presentation”, in which the Bridal Companion (typically her father) “gives”, “brings”, or “presents” her to the groom."> <input value="familyBlessing" checked="checked" id="elements-family-blessing" type="checkbox"> Family Blessing </span> </label> <label class="checkbox"> <span data-tooltip="A controversial element in which the minister/officiant asks those assembled if they approve of the union. Include with caution!"> <input value="speakNow" checked="checked" id="elements-speak-now" type="checkbox"> Speak Now </span> </label> <label class="checkbox"> <span data-tooltip="A controversial element in which the minister/officiant asks the soon-to-be married couple if they affirm their union. Include with caution!"> <input value="chargeToTheCouple" checked="checked" id="elements-charge-to-the-couple" type="checkbox"> Charge To The Couple </span> </label> <label class="checkbox"> <span data-tooltip="A more elaborate message from the minister/officiant, in which she/he expounds on the virtues of marriage and married life."> <input value="weddingSermon" checked="checked" id="elements-wedding-sermon" type="checkbox"> Wedding Sermon </span> </label> <label class="checkbox"> <span data-tooltip="The moment where a passage, often a poem, a scripture lesson, or even a song lyric is read, either by the minister/officiant, a guest reader, or even the bride or groom. These can include romantic novel sections, Bible Stories about marriage, love poems, song lyrics about romance, or even passages about how the soon-to-be married couple feels about each other, such as the moment when they first met."> <input value="weddingReadings" checked="checked" id="elements-consecration" type="checkbox"> Wedding Readings </span> </label> <label class="checkbox"> <span data-tooltip="A short blessing of the ceremony, often containing a prayer or call to a higher power or force."> <input value="consecration" checked="checked" id="elements-consecration" type="checkbox"> Consecration </span> </label> <label class="checkbox"> <span data-tooltip="It is required by law that a wedding ceremony include a Declaration of Intent to marry between the two individuals electing to join in the marriage contract." This can be in the form of an "I Do", where the minister/officiant asks questions to the soon-to-be married couple beginning with "Do you", and in turn, the couple answers "I do". Or it can be in the form of an "I Will", where the minister/officiant asks questions to the soon-to-be married couple beginning with "Will you", and in turn, the couple answers "I will.".> <input checked="checked" value="declarationOfIntent" id="elements-declaration-of-intent" type="checkbox"> Declaration of Intent </span> </label> <label class="checkbox"> <span data-tooltip="At this time, the couple exchanges their vows with one another. Often the most emotional part of the wedding. The couple can have a "repeat-after-me", where the minister/officiant read the vows phrase-by-phrase, and they repeat. Or they can have the minister/officiant say the vows in the form of "Do you" or "Will you" questions, in which the couple in turn answers "I Do" or "I Will". The soon-to-be married couple can choose from traditional vows of different denominations, they can even modify them if the ceremony allows, or they can mix and match wordings from different sets of vows if they like. But the beauty of this moment is when soon-to-be married couples often go all out and write their own vows, which they can either render as "I-Do's" or "I-Will's", or a repeat-after-me with the minister/officiant, or they can even read them to each other. Sometimes, if the couple makes vows that are identical, they can often read and say them together."> <input value="exchangeOfVows" id="elements-exchange-of-vows" checked="checked" type="checkbox"> Exchange of Vows </span> </label> <label class="checkbox"> <span data-tooltip="It has become custom that individuals getting married will exchange rings with one another."> <input value="exchangeOfRings" id="elements-exchange-of-rings" checked="checked" type="checkbox"> Exchange of Rings </span> </label> <label class="checkbox"> <span data-tooltip="The minister/officiant officially declares the couple as having been legally wed."> <input value="pronouncement" id="elements-pronouncement" checked="checked" type="checkbox"> Pronouncement </span> </label> <label class="checkbox"> <span data-tooltip="Often, the couple will elect to exchange a kiss with one another after they've been declared married."> <input value="kiss" id="elements-kiss" checked="checked" type="checkbox"> Kiss </span> </label> <label class="checkbox"> <span data-tooltip="At this time, the minister/officiant has the opportunity to present the newlyweds to the guests before they exit."> <input value="presentation" id="elements-presentation" checked="checked" type="checkbox"> Presentation </span> </label>
-
You can set a tooltip on widgets.
If you'd like something different for the accessibly description there's a property for that too. By default it uses what you put in the tool tip.
From your description it seems your application could make use of QFormLayout to put your "wedding editor" in shape.
-
For the "Baptism Ceremony Builder" part of my Ceremony script generator, how would I make a single-line edit box who's label changes depending on which radio button is selected. For example, if the "Infant" or "Child" radio button is selected, the edit box would be named "Child", and if either "Youth" or "Adult" is selected, the same edit box would be named "Participant". This is of course where the customer would put the name of the child/participant being presented in the baptism/christening/dedication/naming ceremony. Same thing goes for the boxes named "Parent 1" (or "Sponsor 1") and "Parent 2" (or "Sponsor 2"). Also, how would I automatically fill in gender appropriate nouns and pronouns in the finished text based on the gender selected (Male or Female)?
-
That's where signals and slots comes into play. For each control proposing a choice you will have a slot that will modify your UI based on the state/choice of the control that was just modified.
-
@SGaist said in Qt Programming Language:
That's where signals and slots comes into play. For each control proposing a choice you will have a slot that will modify your UI based on the state/choice of the control that was just modified.
I would appreciate if you could please be so kind as to give me an example of code as to what this will look like. Also, here's a bit of an example of Qt widget code I've put together. Please tell me if this looks right. If there's anything I need to change in my code, please let me know.
QButtonGroup QRadioButton *button = new QRadioButton ("Bride", this); QRadioButton *button = new QRadioButton ("Groom", this); QLineEdit *lineEdit = new QLineEdit ("Spouse 1 Name", this); QButtonGroup QRadioButton *button = new QRadioButton ("Bride", this); QRadioButton *button = new QRadioButton ("Groom", this); QLineEdit *lineEdit = new QLineEdit ("Spouse 2 Name", this); QPushButton *button = new QPushButton ("Back", this); QPushButton *button = new QPushButton ("Next", this);
-
@SGaist said in Qt Programming Language:
Do you want to build something like a QWizard ?
I guess you could say that. Then when customers come to the last step, the "Download" button would be like the "Finish" button of an Installation Program if you like. So when customers click the "Download" button, a finished document appears on their screen. Then there could be a "Print" button, and a "Save" button.