75 Posted Topics

Member Avatar for C++ programmer

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 …

Member Avatar for Eagletalon
0
200
Member Avatar for manhthaodn

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 …

Member Avatar for WaltP
0
394
Member Avatar for Chuckleluck

also just want to point out a spelling mistake that could give you a headache: "&& HitteeBox.Left <= HitteeBox.Right)"

Member Avatar for Eagletalon
0
215
Member Avatar for SimpleByDesign

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 …

Member Avatar for adam_k
0
218
Member Avatar for Eagletalon

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 …

Member Avatar for adam_k
0
189
Member Avatar for Dumb Fish

Put a timestamp in the table that you update and select based on that?

Member Avatar for jovillanuev
0
103
Member Avatar for Kron

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 …

Member Avatar for Narue
0
239
Member Avatar for SCass2010

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?

Member Avatar for vijayan121
0
1K
Member Avatar for Allander

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 …

Member Avatar for MonsieurPointer
0
214
Member Avatar for murnesty
Member Avatar for Eagletalon
0
165
Member Avatar for mdheerajgupta

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 …

Member Avatar for Eagletalon
0
194
Member Avatar for peter20

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 …

Member Avatar for Fbody
0
335
Member Avatar for Ravic85

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 …

Member Avatar for Eagletalon
1
1K
Member Avatar for elmar01

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 …

Member Avatar for WhiZTiM
0
158
Member Avatar for SCass2010

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. …

Member Avatar for doug65536
0
754
Member Avatar for ambigouscase

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?

Member Avatar for cherrymae.calma
0
185
Member Avatar for meli123
Member Avatar for Pwnerz0r

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 …

Member Avatar for Eagletalon
0
179
Member Avatar for Jared1337

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 …

Member Avatar for Eagletalon
0
1K
Member Avatar for jovillanuev

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]

Member Avatar for jovillanuev
0
167
Member Avatar for logan_231_2009

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()); …

Member Avatar for Stefano Mtangoo
0
796
Member Avatar for Eagletalon

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 …

0
78
Member Avatar for Ash11th

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...

Member Avatar for Ash11th
0
289
Member Avatar for aomas98

I Still dont understand what the problem is? what are you attempting to do and what is different / incorrect to the desired output?

Member Avatar for Rashakil Fol
-2
177
Member Avatar for jovillanuev

is it possible the data contains characters that would "break" the insert? eg. a VARCHAR value like: 'Stan's bbq'

Member Avatar for Eagletalon
0
307

The End.