Search results
Search results 1-20 of 34.
Hello! Is there any way to make a combobox non-exclusive? I want to be able to choose multible items in the list. I have searched the class reference but have not found any thing. If the answer is no, whats the alternative? Thanx!
MyWidget w; w.setGeometry( x, y, width, height ); Perhaps MyWidget must subclass QMainWindow, I dont remember.
Do you have executable install files for the tools? In that case you could use the system command for example: void MyGUI::slotConnectedToInstallButton() { int i; if (webminCheckbox.isChecked () ) { i = system (webmin.exe); } //etc }
Ok, this works fine. But I still dont know how to set the exakt value? I can set the lower interval with setAlarmLevel() and the upper with setValue(). But is there any way to set a marker at a certain point within this interval? See the attached picture (where I have added (in Paint) a black marker). How do I do this?
Ok, this is how you solve the problem in an ugly way: In the file qwt/src/qwt_valuelist.h comment the row that says: template class QWT_EXPORT QList<double>; rerun qmake qwt.pro and make Done!
Someone? Someone must have qwt installed? What version of Qt and Qwt are you using together?
You have to build the libraries to be able to link ok. For example: Start -> Programs -> Qt -> Qt Build Debug Libraries I have no Qt Build Release Libraries, thats why I get the error during Release linking.
Hello! I am using Qt 4.6.0 with MinGW 5.1.6 and Eclipse under Windows. Now I am trying to install Qwt. I have downloaded Qwt 5.2.0 and extracted it. Using the Qt command prompt I run: qmake qwt.pro and then make which results in a qhash.h error: call of overloaded .... is ambiguous etc. http://www.qtcentre.org/threads/24037-Qw…th-Qt-4-6-0-tp1 says that it is wrong with Qt? So, what version should I use? Qt version as well as Qwt? Thanx
I got the same error when linking my release code but when I link the debug version it works perfectly. I read this somewhere: "'__gxx_personality_v0' is a symbol from libstdc++. You have to link c++ programs using g++ not gcc - should solve your problem." For me it looks like I am already linking with g++ but maybe this helps someone else? I am using eclipse. Where do you set compiler and linker? Thanx
I tried to debug the program from a terminal (MSYS) instead. Doing this I got more information and gdb stated that libSystemCore.dll was not found, (libSystemCore.dll is my own lib), so I guess all paths to any libs must be added to the Path environment variable. After adding the path to my lib to Path environment variable I could run and debug the program via MSYS. (But for some reason I could not get any output in the terminal, std::cout or printf, but I guess thats due to MSYS??) Running the ...
Quoted from "shiyu_tang" If you still meet problem like "gdb: unknown target exception 0xc0000135 at 0x7c964ed1", please add E:\Develop\Qt\4.3.4\lib to Path in your system's Environment Variables. I still get the 0xc0000135 exception even though I added C:\Qt\4.6.0\lib to my path. Eclipse is installed under C:\Program\Eclipse I am using Windows XP. Any thoughts?
Ok, forget the last post. Maybe its just to delete all widgets in the layout, recreate them and any extra widgets and then add all these widgets again. If this is not the best way let me know. Also, if there is a way to insert a widget between two other widgets in a grid, let me know please. //Hammar
Ok, if i write: delete cargo_->layout(); before cargo_->setLayout(newLayout); then the layout looks nicely organised. But the new widgets in the layout are put above the old ones. Strange?! Anyone? This must be a common situation and me just beeing stupid?
Ok, here is the code from the slot connected to the button. numberOfCargoAreas = 4; //instead of 3 before i click the button. QGridLayout* cargoLayout = new QGridLayout(); cargoMassPerArea_.clear(); for (unsigned int i=0; i<numberOfCargoAreas; ++i) { cargoMassPerArea_.push_back(new QLineEdit); cargoMassPerArea_.at(i)->setFixedSize(40,20); cargoMassPerArea_.at(i)->setText("0"); } std::vector<QLabel*> massPerCargoAreaLabel; std::stringstream ss; for (unsigned int i=0; i<numberOfCargoAreas; ++i) { ...
Hello! I have a groupbox with a gridLayout inside. The grid contains labels and lineedits. Originally the grid has 3 rows but I have a PushButton that should trigger an expansion of the grid to 4(or more) rows. I have tried to just delete all the labels and lineedits and then create new ones. I then use grid->addWidget(...); on the new widgets. For some reason I still only have three rows but they are somewhat moved within the groupbox. How do I solve this? Thanx!
Quoted from "Nicolas SOUCHON" QSlider is an "input widget" so probably not well adapted to present results a little bettrer look at QProgressBar but what of confidence interval ? precise how you would like to see results I would like to have a scale or similar from 0 to 100%. The result should be representerd by a marker on this line, at for example 40 %. If the confidence interval is +- 5% then the space between 35-45 % should be highlighted somehow.
Quoted from "Nicolas SOUCHON" a possibility is to use Qwt QwtThermo could provide interesting capabilities create a QwtThermo set range 0 .. 100 (%) set his fill color to the background color: setFillColor( ... ); set his alarm color to something different: setAlarmColor( Qt::green ); set his alarm level: setAlarmLevel( minConfVal ); set his value: setValue( maxConfVal ); ... set some other things to have a nice reprentation you should see some sort of thermometer with only a green segment in t...
Hello! I have a program that does some calculations and the specifications says that I should present the results "graphically" with some confidence interval. The result I am presenting is a percentage of a distance so my thought was to create a QSlider and let the handles position represent the result. But how do I do with the confidence interval? Can I choose where to add the Ticks and how many? Or can I make the bar of the slider bold somehow for the region around the exact result? Is there a...
Ok, my bad. I had not installed gcc-4.4.1-tdm-2-core.zip, just gcc-4.4.1-tdm-2-g++.zip.
If I change back to Qt 3.4.5 then the old project works fine again.