![]() |
Re: Need assistance from QT programmer
You can use member variable to access variables in other method.
MainWindow.h Code:
class MainWindow Code:
MainWindow::MainWindow(QWidget *parent) : Code:
void MainWindow::on_pushButton_clicked() |
Re: Need assistance from QT programmer
1 Attachment(s)
Quote:
Now I'm strugling with QColorDialog which seems to be buggy (don't know if it's my or Qt's fault); colors shown on the palette arent matching to the actual selected color (color shown at the box on the right). You can see on the screenshot attached that on the left box I'm choosing a green color and on the right box orange is shown (and selected). |
Re: Need assistance from QT programmer
Quote:
Not your fault :-) Nicolai |
Re: Need assistance from QT programmer
Quote:
Seems like they have fixed it in Qt 4.7, maybe I shall install it and see if it helps... Edit: where the hell I can download 4.7 for Maemo? Or isn't it released yet? |
Re: Need assistance from QT programmer
It's ibqt4-experimental and it's in the repositories (don't know if it's in tresting, but I'mshure its in devel).
|
Re: Need assistance from QT programmer
Quote:
Code:
The following packages have unmet dependencies: |
Re: Need assistance from QT programmer
Are you sure you didn't install any other library than core and you compiled the app with Qt 4.7? I thought your app would at least need core and gui...
|
Re: Need assistance from QT programmer
Quote:
Well, anyways, that's a bit offtopic issue and will hopefully be fixed in the future (the colordialog bug). Tomorrow I'll try to get the parse-color-codes from file -thing working and release first devel version for public use :) |
Re: Need assistance from QT programmer
Quote:
My code (mainwindow.cpp) looks now like this: Code:
QFile file("/etc/hildon/theme/colors.config"); 'IO_ReadOnly' was not declared in this cope 'stream' was not declared in this scope 'key' was not declared in this scope I propably didn't quite understand how QHash works so the last line of my code might be totally wrong too... |
Re: Need assistance from QT programmer
Quote:
Quote:
#include <QTextStream> Quote:
|
All times are GMT. The time now is 23:17. |
vBulletin® Version 3.8.8