75 Posted Topics
Re: Basically what QDialogButtonBox::Ok is is a static member of the QDialogButtonBox class defined in the QT libraries... another example is the QMessageBox... please see usage below: [CODE]QMessageBox::information(0, "Title bar text", "Message text", "", "")[/CODE] This will give you basic message box (with information image, can also use critical for errors … | |
Re: What WaltP is trying to slow walk you to is dividing the amount by 16 (hexa), how hexadecimal works is that you take the decimal amount, divide it by 16, take the fraction (after the decimal point) and multiply this by 16, then take the integer remainder (before the decimal … | |
Re: also just want to point out a spelling mistake that could give you a headache: "&& HitteeBox.Left <= HitteeBox.Right)" | |
Re: Hey mate... change your Subquery (in the select statements)... take away the joing and everything... [CODE]SELECT T0.ItemCode, T0.Quantity, SUM(T0.Quantity) FROM RDN1 T0 WHERE T0.ItemCode IN (SELECT T0.U_ItemCode FROM MET_OBOM T0 INNER JOIN MET_BOM1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.U_ItemCode = '30-05-618XD') ORDER BY T0.DocEntry ASC[/CODE] See how that treats … | |
Hey guys, Alright I have a tricky assignment to do in a view that will enable my next program to run MUCH faster and more reliable... Now I need to list all Items (1 table) and their locations where they are stored (2nd table) in a way that enables 1 … | |
Re: Put a timestamp in the table that you update and select based on that? | |
Re: Just a quick question on the check for character case... would this not also be an acceptable check? [CODE]#include <cctype> #include <algorithm> #include <iostream> #include <fstream> #include <istream> #include <iostream> #include <string> using namespace std; int main(){ string ch = ""; string ch2 = ""; string uppercase = ""; cout … | |
Re: Just a shot in the dark... but how about saving the keys in a List... and then removing the duplicates... and running the list through a count? | |
Re: Because you are working in the source code of the class "masterList"... the only way "masterList" would be able to access the functions of "groundArray" is by creating an instance of it (groundArray * ground = new groundArray()) and then calling its methods as follows: ground->getlistX(i) another way would be … ![]() | |
Re: Did you just comment on your own post? :S... riiiight... Anyway how about just creating a timer that repeats and emits a signal that will cause all bluetooth devices to be searched... and when one is returned that was not there before you emit a signal that would start the … | |
Re: Anything declared Private can only be accessed by the class itself but anything declared Public can be accessed by any class referencing it... Think of it like a computer on a network... only your computer can access all the folders... but all computers can access the folders you mark as … | |
Re: Alright mate, first thing is first... bloody well done on getting this far by yourself, unlike many others that use this forum you actually tried and deserve recognition for that fact... now what are you having troubles with? do you have compiling errors or are you having incorrect or not … | |
Re: Well getting a specified range would be nice... but my general thought would be something in the line of: -Check the length of the integer provided (amount of chars)... -Write a comparison in to resolve each amount (eg. 3 chars would resolve to "hundred") -Check the very first digit -Write … | |
Re: It sounds like you built the hard part already? how can the calculation beat you down? did you give it a try? can you give an example and we will show you the spots we think you can improve... Basic questions to look at for this type of calculation: 1. … | |
Re: Get a input of each 1... and calculate the values and total? Come on mate give it a try at least... don't ask people to do your project for you? | |
Re: It means that there is a possibility that an condition or a loop statement flow results in a path without a return value i.e. function runs and is expected to return a value but there is a possibility that it wont and thus create an application error... all the compiler … | |
Re: I'll help you with the tri-angle... but you need to apply the logic and put them together to build the diamond... [CODE]{ // Make triangle shaped like so(- stands for blank space) // ----* // ---** // --*** // -**** // ***** int rowSize3; cout << "Please enter another row … | |
Re: Try the following?: [CODE]SELECT ItemNumber, PurchasePrice, ReceivingPO, DATENAME(MONTH,CONVERT(DATETIME, ReceivedDate)) AS ReceivedMonth FROM #VPTable as vp WHERE vp.ReceivingPO IS NOT NULL[/CODE] | |
Re: Basic program coming up... please forgive the datatypes, I work mainly with QT libraries MODEL: [CODE]QTreeWidgetItem ContainerClass::loadData(){ <Database call and query> QTreeWidgetItem item.text(<field index> = query.record.value(<fieldname>).toString().trimmed(); return item; }[/CODE] VIEW: [CODE]void ViewClass::on_btnLoad_clicked(){ ControllerObject * TWControlObject = new ControllerObject() TWControlObject->loadData(); }[/CODE] Controller: [CODE]void ControllerObject::loadData(){ ContainerClass * DataObject = new ContainerClass(); tw->addTopLevelItem(DataObject->loadData()); … | |
Hi there everyone, I really hope someone can help me, I am working with Visual C++ with QT libraries and using... well... something that represents MVC (long story)... now I need to pass a const QString& from my 1 controller class to the model of another class... When doing so … | |
Re: Perhaps try something simple like a Message Box or console message after each line where there is a possible error, with a pause right after it, then you can see the flow progress slowly (step by step) and check where the problem arises... | |
Re: I Still dont understand what the problem is? what are you attempting to do and what is different / incorrect to the desired output? | |
Re: is it possible the data contains characters that would "break" the insert? eg. a VARCHAR value like: 'Stan's bbq' |
The End.