![]() |
Re: Need assistance from QT programmer
Quote:
|
Re: Need assistance from QT programmer
Could you kindly tell me how to set the comboboxes show the value I want?
I tried all kinds of stuff but couldn't find how to do it right. Here's what I've tried so far and I'm getting build error " classQComboBox has no member named 'setCurrentText' Code:
void MainWindow::writeSettings() |
Re: Need assistance from QT programmer
Okay, got the errors cleared out of building process, but the comboboxes still shows the first item in the combobox as active one when launching the program. My code looks now like this:
http://www.pastie.org/1053465 |
Re: Need assistance from QT programmer
Hooray! Thanks to guys @ #qt I got it working. The code looks now like this:
http://www.pastie.org/1053508 |
Re: Need assistance from QT programmer
Once again I need to ask for some assistance :P
Now I've ran out of space on my program and I'd like to expand the content area and make it scrollable (kinetic scrolling with finger). I found this, but cannot find that widget (QAbstractScrollArea) from QT Creator: http://wiki.maemo.org/Qt/Finger_Scrolling |
Re: Need assistance from QT programmer
Quote:
|
Re: Need assistance from QT programmer
Quote:
I dragged the scrollarea to mainwindow, resized it to fill almost the whole mainwindow and then cut + pasted my elements inside of it, but the damn area won't scroll even the elements goes below the scrollarea. I also tried to scretch the scrollarea to be longer than my mainwindow but still didn't scroll. |
Re: Need assistance from QT programmer
Quote:
Code:
ui->yourScrollArea->setWidget(ui->yourWidget); |
Re: Need assistance from QT programmer
Quote:
|
Re: Need assistance from QT programmer
1 Attachment(s)
Here's a little test I made on my PC and it scrolls fine.
|
All times are GMT. The time now is 02:23. |
vBulletin® Version 3.8.8