Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Error Message I get when starting up Qt project.

    8
    0 Votes
    8 Posts
    4k Views
    EddyE
    In that case "this is a good read":http://developer.qt.nokia.com/doc/qt-4.7/gettingstarted-develop.html for you. Also, have a look in the wiki for specific subjects and FAQ's. Your description of what you want is still rather general so I can't guide you to more specific ones.
  • ActiveQt user defined type

    2
    0 Votes
    2 Posts
    2k Views
    R
    Doing some more investigation it appear that idc.exe generates an idl file based on the activeqt binary file which in this case is a dll. The .idl file contain definitions of some Qt's data types(QRect, QSize and QPoint). An example of the format; @ [uuid(34569876-5566-4321-5678-6787-67567575675)] Struct QRect { int left; int top int right; int bottom; } @ So I was thinking that if idc.exe could create a similar data type for the class CustomData and place it in the idl file, the MyCustomData property might be available from the .NET project. Does that sound reasonable? If yes, how does the idc.exe convert QRect into an idl format as seen above? [EDIT: code formatting, Volker]
  • Differences between PostgreSQL and SQLite in handling QDateTime

    9
    0 Votes
    9 Posts
    7k Views
    F
    [quote author="p-himik" date="1322137556"]SQLite doesn't have any data type relative to time and date. It stores them just as strings. So that still could be a driver issue.[/quote] It is mainly a database issue.
  • [SOLVED]How to reimplement QAbstractItemModel::sort()

    2
    0 Votes
    2 Posts
    7k Views
    A
    I think I would go for using a QSortFilterProxyModel instead to provide the sorting, and let that one do the work for you.
  • Where to download Qt 4.7.4 Debug symbols for VC++ 98 on Window Desktop?

    2
    0 Votes
    2 Posts
    2k Views
    G
    Hi, First of all, what should VC++ 98 be? I know VC 2005 (= VC 8.X) and VC 2008 (= VC 9.X). AFAIK, the debug symbols are not included and I know no place to download them from. For release, I expect, they are not even build.
  • Connecting to MSSQL with SQL browzer example

    5
    0 Votes
    5 Posts
    3k Views
    F
    We cannot help if the program and the error remains in your brain. Provide some details about what/which/when fails and we will help you.
  • Using QScriptEngine many times

    2
    0 Votes
    2 Posts
    2k Views
    N
    Time spent on the command like this: @ var ob = new my_object (); @ I believe that the problem connected with accumulation of garbage, but an explicit call of the garbage collector does not help. Edit: please 1) use @ tags around code sections, and 2) use the edit link to add new information rather than posting another message; Andre
  • Inserting QComboBox in the HorizontalHeader of the QTableWidget

    3
    0 Votes
    3 Posts
    4k Views
    S
    Ok Thanks a lot. Ya I ll try it out that.
  • Close button must close 2 windows

    9
    0 Votes
    9 Posts
    11k Views
    A
    [quote author="browser90" date="1321300907"]Oké i've something like this: @ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); connect(closeButton, SIGNAL(clicked()), MainWindow, SLOT(close())); connect(closeButton, SIGNAL(clicked()), Form, SLOT(close())); } @ but it doesn't compile? Kind regards, thanks for your help already.[/quote] Seems to me you are confusing classes with objects (instances of classes). You can not connect to a class, you connect to an object.
  • Change Standalone Qt App into Plugin for VS Project

    2
    0 Votes
    2 Posts
    2k Views
    K
    How about creating a separate project for your dll/lib? An additional project for your ExportMe.exe. The second project will certainly have to access the dll/lib. Depending on the size of the dll/lib part this may be the fastest way to get to a solution.
  • [UI] Connection between QAction and SLOT

    5
    0 Votes
    5 Posts
    15k Views
    L
    Thanks a lot qxoz, I'll create the entire interface including the menu item. If I have some problems, I'll post them in this post...
  • [Solved]Automation test tool

    2
    0 Votes
    2 Posts
    2k Views
    R
    "Here":http://doc.qt.nokia.com/qq/qq16-testing.html
  • [Solved][Qt concurrent] Emit signal from run method do not work

    7
    0 Votes
    7 Posts
    21k Views
    L
    An event loop is started by calling exec(), for example QCoreApplication::exec(). Pending events can be processed (once) using processEvents(). @ class SignalTest : public QObject { Q_OBJECT public: void test() { qDebug() << Q_FUNC_INFO << QThread::currentThread() << thread(); emit signal(0); } signals: void signal(int parameter); public slots: void slot(int parameter) { Q_UNUSED(parameter); qDebug() << Q_FUNC_INFO << QThread::currentThread() << thread(); } }; int main(int argc, char *argv[]) { QCoreApplication application(argc, argv); qDebug() << Q_FUNC_INFO << QThread::currentThread(); SignalTest signalTest; signalTest.connect(&signalTest, SIGNAL(signal(int)), &signalTest, SLOT(slot(int)), Qt::QueuedConnection); QtConcurrent::run(&signalTest, &SignalTest::test); return application.exec&#40;&#41;; // run event loop for main thread } @ [quote author="vishwajeet" date="1322117812"]For this example it is fine to miss few signals.[/quote] Just make sure you are aware of it. Another pitfall is the following restriction of QtConcurrent::run(): [quote]Note that the QFuture returned by QtConcurrent::run() does not support canceling, pausing, or progress reporting. The QFuture returned can only be used to query for the running/finished status and the return value of the function.[/quote] This means, that if your method never returns (as in your case, while(1) { ... }) you will have to provide a mechanism to break, otherwise you won't be able to terminate the thread.
  • QT installation for VS2010

    15
    0 Votes
    15 Posts
    26k Views
    E
    With vs2010, you should use qt 4.8 for Windows - VS2010, here is the link: http://developer.qt.nokia.com/prereleases, and qtvsaddin 1.1.9, here is the link: http://developer.qt.nokia.com/prereleases. And the guide for Installing Qt for Windows here it is :http://developer.qt.nokia.com/doc/qt-4.7/install-win.html I wish I can help you. Good luck.
  • [Solved]Need help with CSS

    5
    0 Votes
    5 Posts
    3k Views
    J
    Thank you~ Oh, It is very useful to me.
  • Expected constructor, destructor, or type conversion before ‘(’ token

    8
    0 Votes
    8 Posts
    10k Views
    D
    Is that a literal paste of your code? The trailing ';' is an error.
  • How to switch forms?

    7
    0 Votes
    7 Posts
    4k Views
    S
    hiding the main window probably isn't quite what i wanted to do. i want to be able to start the app with a home screen, then click a button and go to another screen. the second(and subsequent) screens will have their own controls, event handlers, etc. i then want to be able to switch to other screens, as well as return to the 'home' screen. i'll take a look at QStackedWidget, that sounds like it might be closer to what i wish to do. thanks for input, i'll report back what i discover here.
  • Debug runs but release crashes on launch

    3
    0 Votes
    3 Posts
    4k Views
    Q
    I had the same trouble. Sometimes the debug mode misses some exception messages. Choose Build-> Clear All Run QMake Build all If this fails, check out step by step, each line in debug mode, you will surely find it.
  • [Solved] QGraphicsView not updating

    2
    0 Votes
    2 Posts
    6k Views
    E
    In overriding QMainWindow::event() I should have not simply returned false in case of not handling the event myself, I should have had @return QMainWindow::event(e);@ That solved it.
  • To Read Multiple lines on PushButton click.d

    4
    0 Votes
    4 Posts
    2k Views
    C
    The simplest example would be to save the entire "GPL-3.0":http://www.opensource.org/licenses/GPL-3.0 into resource file. When button is clicked, read the file, and put the "plain text":http://doc.qt.nokia.com/stable/qtextedit.html#plainText-prop into QTextEdit